我收到此错误:
method_missing': undefined method
观看次数为 #
当试图运行'-> rails generate devise user'
我也只是尝试做'-> rails s'来启动服务器,但它不工作并且显示相同的错误。我对 RoR 完全陌生,在学习本教程时可能会搞砸一些事情......
请帮忙!
编辑:完全错误:
/Users/myname/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30:in `method_missing': undefined method `views' for #<FirstApp::Application:0x007fd0a1b02880> (NoMethodError)
from /Users/myname/Desktop/rails-projects/First_App/config/application.rb:61:in `<class:Application>'
from /Users/myname/Desktop/rails-projects/First_App/config/application.rb:13:in `<module:FirstApp>'
from /Users/myname/Desktop/rails-projects/First_App/config/application.rb:12:in `<top (required)>'
from /Users/myname/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/lib/rails/commands.rb:53:in `require'
from /Users/myname/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/lib/rails/commands.rb:53:in `block in <top (required)>'
from /Users/myname/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/lib/rails/commands.rb:50:in `tap'
from /Users/myname/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
谢谢 :)