简体   繁体   中英

Rails server broken after Action Cable and using rails restart command

Going through the following book with the error showing: Agile Web Development with Rails 5.1, iteration F5: Broadcasting with Action Cable. As far as I am concerned I followed the directions precisely, my only possible flaw was to type: rails restart rather than rails server again, now it will just not boot anymore! Any possible help is appreciated!

Error in Question:

/Users/dj911ice/.rvm/gems/ruby-2.4.1/gems/railties-5.1.2/lib/rails/railtie/configuration.rb:95:in method_missing: undefined method action_cable_ for # (NoMethodError)

The server error:

服务器错误

Looks like you have a typo around line 57 of config/environments/development.rb , where you are calling config.action_cable_ instead of config.action_cable .

Remove the trailing underscore and restart your rails server.

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