aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-18 12:18:07 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-18 12:18:07 +0100
commite3dee30d561387d6f380c811b9c72622bca47220 (patch)
tree7b231f6278de22b4644b8c1663712d1ef0264dc8 /railties
parent3186fe582c76f9f05bf3b87e4a4e2e5b09ce770c (diff)
downloadrails-e3dee30d561387d6f380c811b9c72622bca47220.tar.gz
rails-e3dee30d561387d6f380c811b9c72622bca47220.tar.bz2
rails-e3dee30d561387d6f380c811b9c72622bca47220.zip
Better explanation
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.coffee8
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()