2016-11-09 55 views
4

我有一個奇怪的問題。我只在遠程服務器上配置了一個rails項目。但緊接着我運行的導軌上服務器「命令,我得到這個錯誤:Rails服務器啓動後立即退出<未定義方法>

[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' 
+0

你有'application_controller.rb'中的方法'decent_configuration'嗎? –

+0

是的。本地代碼的相同副本。 –

回答

0

也許服務器端更新您的decent_exposure成不同版本的API(V2至V3)。更多細節請參考 here特別在Problems you may face upgrading部分。

相關問題