diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-18 12:18:07 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-18 12:18:07 +0100 |
commit | e3dee30d561387d6f380c811b9c72622bca47220 (patch) | |
tree | 7b231f6278de22b4644b8c1663712d1ef0264dc8 /railties/lib/rails | |
parent | 3186fe582c76f9f05bf3b87e4a4e2e5b09ce770c (diff) | |
download | rails-e3dee30d561387d6f380c811b9c72622bca47220.tar.gz rails-e3dee30d561387d6f380c811b9c72622bca47220.tar.bz2 rails-e3dee30d561387d6f380c811b9c72622bca47220.zip |
Better explanation
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.coffee | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.coffee b/railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.coffee index cb7653cdc5..49a7cfa69b 100644 --- a/railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.coffee +++ b/railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.coffee @@ -1,7 +1,11 @@ +# Action Cable provides the framework to deal with WebSockets in Rails. +# You can generate new channels where WebSocket features live using the rails generate channel command. +# +# Turn on the cable connection by removing the comments after the require statements (and ensure it's also on in config/routes.rb). +# #= require action_cable #= require_self #= require_tree ./channels - -# Turn on the cable connection (ensure it's also on in config/routes.rb): +# # @App ||= {} # App.cable = ActionCable.createConsumer() |