我有一个奇怪的问题。我刚刚在远程服务器上配置了一个 Rails 项目。但是在我运行“rails server”命令后立即出现此错误:
[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'
最佳答案
也许服务器端将您的 decent_exposure
更新为不同版本的 API(V2 到 V3)。更多细节
here特别是在 升级时可能遇到的问题
部分。
关于ruby-on-rails - Rails 服务器在启动后立即退出 <Undefined method>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40509670/