当我尝试从Linux终端运行rails s命令时,出现了未定义的方法错误。我的gemfile中没有Inherited_resources gem。
我知道此类问题已经得到解答,但就我而言并非如此。我没有继承资源gem,即使安装了必要的gem版本,它也无法为我解决问题。
完整的日志是:
/gems/railties-3.2.21/lib/rails/railtie/configuration.rb:85:in 'method_missing': undefined method 'generators' for #<Rails::Railtie::Configuration:0x000000049d2340> (NoMethodError)
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/haml-rails-0.1/lib/haml-rails.rb:4:in '<class:Railtie>'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/haml-rails-0.1/lib/haml-rails.rb:3:in '<module:Rails>'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/haml-rails-0.1/lib/haml-rails.rb:2:in '<module:Haml>'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/haml-rails-0.1/lib/haml-rails.rb:1:in '<top (required)>'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/bundler-1.17.1/lib/bundler/runtime.rb:81:in 'require'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/bundler-1.17.1/lib/bundler/runtime.rb:81:in 'block (2 levels) in require'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/bundler-1.17.1/lib/bundler/runtime.rb:76:in 'each'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/bundler-1.17.1/lib/bundler/runtime.rb:76:in 'block in require'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/bundler-1.17.1/lib/bundler/runtime.rb:65:in 'each'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/bundler-1.17.1/lib/bundler/runtime.rb:65:in 'require'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/bundler-1.17.1/lib/bundler.rb:114:in 'require'
from /home/munib/workspace/mil/config/application.rb:8:in '<top (required)>'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/railties-3.2.21/lib/rails/commands.rb:53:in 'require'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/railties-3.2.21/lib/rails/commands.rb:53:in 'block in <top (required)>'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/railties-3.2.21/lib/rails/commands.rb:50:in 'tap'
from /home/munib/.rvm/gems/ruby-2.1.10@mil3.2.3/gems/railties-3.2.21/lib/rails/commands.rb:50:in '<top (required)>'
from script/rails:6:in 'require'
from script/rails:6:in '<main>'