简体   繁体   English

Rails控制台提供method_missing,未定义

[英]rails console gives method_missing, undefined

I am following a Rails tutorial and have to run rails console. 我正在关注Rails教程,并且必须运行Rails控制台。 I never had a issue with it before but now it doesn't run. 我以前从未遇到过问题,但现在没有运行。

Here's the error. 这是错误。

    /Users/lexi87/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.11/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `generators' for
#<Rails::Railtie::Configuration:0x007ffc41d4a9a0> (NoMethodError)
        from /Users/lexi87/.rvm/gems/ruby-1.9.2-p320/gems/rspec-rails-2.0.0.beta.18/lib/rspec-rails.rb:4:in `<class:Railtie>'

I noticed that your rspec gem is the same version as listed here: "rails generate rspec:install" seems to be failing 我注意到您的rspec gem与此处列出的版本相同: “ rails generate rspec:install”似乎失败了

Maybe that will help. 也许会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM