tsechingho/chosen-rails

Rails 4.0.3 / railties 4.0.3 errors: `method_missing': undefined method `assets' for

cchavez opened this issue · 1 comments

I'm trying to use chosen in some project, but I'm getting the following error:

/home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/railtie/configuration.rb:95:in method_missing': undefined methodassets' for #Rails::Engine::Configuration:0x0000000523c418 (NoMethodError)
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails/engine.rb:4:in <class:Engine>' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails/engine.rb:3:inmodule:Rails'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails/engine.rb:2:in <module:Chosen>' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails/engine.rb:1:in<top (required)>'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in require' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:inblock in require'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in load_dependency' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:inrequire'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/chosen-rails-1.1.0/lib/chosen-rails.rb:10:in <top (required)>' from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:inrequire'
from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in block (2 levels) in require' from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:ineach'
from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in block in require' from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:ineach'
from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in require' from /home/cchavez/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.2/lib/bundler.rb:131:inrequire'
from /home/cchavez/CLIENT/bitbucket/project/config/application.rb:7:in <top (required)>' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/commands.rb:74:inrequire'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/commands.rb:74:in block in <top (required)>' from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/commands.rb:71:intap'
from /home/cchavez/.rvm/gems/ruby-2.1.0@project/gems/railties-4.0.3/lib/rails/commands.rb:71:in <top (required)>' from script/rails:6:inrequire'
from script/rails:6:in `

'

I just found that if in the Gemfile the gem 'chosen-rails', '~> 1.1.0' is before the sass-rails, compass-rails and coffee-rails, it throw that error, but if the chosen-rails is after those gems, I don't get that error.