Rails服务器在启动<undefined method =“”>后立即退出

时间:2016-11-09 14:45:00

标签: ruby-on-rails ruby

我有一个奇怪的问题。我刚刚在远程服务器上配置了rails项目。但是在我运行“rails server&#39;命令我收到此错误:

[pediatric-nutri]# rails server
=> Booting WEBrick
=> Rails 4.1.16 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/home/lookwhat/rails_apps/pediatric-nutri/app/controllers/application_controller.rb:5:in `<class:ApplicationController>': undefined method `decent_configuration' for ApplicationController:Class (NoMethodError)
    from /home/lookwhat/rails_apps/pediatric-nutri/app/controllers/application_controller.rb:1:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.1.16/lib/active_support/dependencies.rb:443:in `load'

1 个答案:

答案 0 :(得分:0)

也许服务器端将您的decent_exposure更新为不同版本的API(V2到V3)。有关它的更多细节 here,尤其是Problems you may face upgrading部分。