diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2016-04-10 13:45:59 +0100 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2016-04-10 13:45:59 +0100 |
commit | 35b19cd1eb95ca0419e1be879fbadf92948369d7 (patch) | |
tree | f039d9c6c5746f514ef31ab22e889268722104a4 /guides | |
parent | 9cfcc460e1ce40daaa3ea005cf4685f01233111f (diff) | |
parent | f02a94037db335a766e3ea25c98e80f132190d97 (diff) | |
download | rails-35b19cd1eb95ca0419e1be879fbadf92948369d7.tar.gz rails-35b19cd1eb95ca0419e1be879fbadf92948369d7.tar.bz2 rails-35b19cd1eb95ca0419e1be879fbadf92948369d7.zip |
Merge pull request #24488 from y-yagi/fix_file_path
fix typo in file path [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/action_cable_overview.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md index 28578b3369..d1f17fdce5 100644 --- a/guides/source/action_cable_overview.md +++ b/guides/source/action_cable_overview.md @@ -106,11 +106,11 @@ Then you would create your own channel classes. For example, you could have a **ChatChannel** and an **AppearanceChannel**: ```ruby -# app/channels/application_cable/chat_channel.rb +# app/channels/chat_channel.rb class ChatChannel < ApplicationCable::Channel end -# app/channels/application_cable/appearance_channel.rb +# app/channels/appearance_channel.rb class AppearanceChannel < ApplicationCable::Channel end ``` @@ -125,7 +125,7 @@ Incoming messages are then routed to these channel subscriptions based on an identifier sent by the cable consumer. ```ruby -# app/channels/application_cable/chat_channel.rb +# app/channels/chat_channel.rb class ChatChannel < ApplicationCable::Channel # Called when the consumer has successfully become a subscriber of this channel def subscribed @@ -182,7 +182,7 @@ Streams provide the mechanism by which channels route published content (broadcasts) to its subscribers. ```ruby -# app/channels/application_cable/chat_channel.rb +# app/channels/chat_channel.rb class ChatChannel < ApplicationCable::Channel def subscribed stream_from "chat_#{params[:room]}" |