polymer-rails: undefined method `context_class` with new versions of sass/sprockets
Error
/home/frexuz/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/polymer-rails-1.1.0/lib/polymer-rails/
railtie.rb:7:in `block in <class:Railtie>': undefined method `context_class' for nil:NilClass (NoMethodError)
Gemfile
source 'http://rubygems.org'
source 'http://gems.github.com/'
gem 'rails', '4.2.4'
gem 'polymer-rails'
#truncated...
group :assets do
gem 'sass', '3.4.18'
gem 'sass-rails', '~> 5.0.4'
gem 'sprockets', '3.3.4'
gem 'sprockets-rails', '3.0.0.beta2', :require => 'sprockets/railtie'
end
What’s going on? 😕
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (4 by maintainers)
Leaving my solution here. In the gem file I removed
sprockets
gem, leaving onlysprockets-rails
and with this order.On
config/assets
updated context_class lines to