简体   繁体   中英

Rails server exiting immediately after starting <Undefined method>

I have a strange issue. I just configured a rails project on a remote server. But immediately after I run 'rails server' command I get this error:

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

Perhaps server side updated your decent_exposure into a different version of API (V2 to V3). More details on it here particularly in the Problems you may face upgrading section.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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