zurb/foundation-rails — Issue #9: rails g foundation:install failed without Sprockets
Author: zedtux
Created: 2011-11-03 07:32:53+00:00
State: open

I'm trying foundation with Rails 3.1.0 and Ruby 1.9.3-p0.

Given new Rails application generated with the following command line:

````bash
rails new testing_foundation -T -G -S -J
````

And Gemfile file contains the following gem:

````ruby
gem "zurb-foundation", :group => :assets
````

When I run `bundle install`
Then I should see "Your bundle is complete!"
When I run `rails g foundation:install`
Then I should see the following error:

````bash
/Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/whiny_nil.rb:48:in `method_missing': undefined method `context_class' for nil:NilClass (NoMethodError)
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/sass-rails-3.1.4/lib/sass/rails/railtie.rb:61:in `block in '
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `run'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `each'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/application.rb:96:in `initialize!'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/zedtux/Developments/testing_foundation/config/environment.rb:5:in `'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/application.rb:83:in `require'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/application.rb:83:in `require_environment!'
from /Users/zedtux/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/commands.rb:22:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
````

Same scenario without `-S` work like a charm.