uninitialized constant > ActionCable::Server::Configuration::ApplicationCable

后端 未结 4 1856
伪装坚强ぢ
伪装坚强ぢ 2021-01-04 06:23

When I am running server its throwing error shown in logs below. I googled a lot but didn\'t get reason behind it. Somebody please put some light on it.

Gemfile

4条回答
  •  有刺的猬
    2021-01-04 06:43

    I had the same problem when trying to use ActionCable with Rails 4.2.5 and the solution was to add the following to config/application.rb:

    config.autoload_paths += %W(#{config.root}/app/channels)
    

    This is with the ActionCable gem:

    gem 'actioncable', github: 'rails/actioncable', branch: 'archive'
    

提交回复
热议问题