Compass/compass-rails — Issue #3: `<module:Sprockets>': uninitialized constant Rails (NameError)
Author: corroded
Created: 2012-02-01 14:12:45+00:00
State: open

In Rails 3.1.0

```
rails new compassrails
cd compassrails
```

add `gem 'compass-rails'` to assets as said in README, then run `bundle`

`bundle exec compass init` explodes

Stacktrace:

```
bundle exec compass init
/Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:7:in `': uninitialized constant Rails (NameError)
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:1:in `'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass/rails/railtie.rb:1:in `require'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass/rails/railtie.rb:1:in `'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass/rails.rb:8:in `require'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass/rails.rb:8:in `'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass-rails.rb:1:in `require'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/sass-rails-3.1.5/lib/sass-rails.rb:1:in `'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:68:in `require'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:66:in `each'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:66:in `block in require'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:55:in `each'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler/runtime.rb:55:in `require'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.14/lib/bundler.rb:120:in `require'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/gems/compass-0.12.rc.0/bin/compass:25:in `'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/bin/compass:19:in `load'
from /Users/eumir/.rvm/gems/ruby-1.9.2-p180@bayanihand/bin/compass:19:in `

'
```