Skip to content

Commit 35b19cd

Browse files
committed
Merge pull request rails#24488 from y-yagi/fix_file_path
fix typo in file path [ci skip]
2 parents 9cfcc46 + f02a940 commit 35b19cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/source/action_cable_overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ Then you would create your own channel classes. For example, you could have a
106106
**ChatChannel** and an **AppearanceChannel**:
107107

108108
```ruby
109-
# app/channels/application_cable/chat_channel.rb
109+
# app/channels/chat_channel.rb
110110
class ChatChannel < ApplicationCable::Channel
111111
end
112112

113-
# app/channels/application_cable/appearance_channel.rb
113+
# app/channels/appearance_channel.rb
114114
class AppearanceChannel < ApplicationCable::Channel
115115
end
116116
```
@@ -125,7 +125,7 @@ Incoming messages are then routed to these channel subscriptions based on
125125
an identifier sent by the cable consumer.
126126

127127
```ruby
128-
# app/channels/application_cable/chat_channel.rb
128+
# app/channels/chat_channel.rb
129129
class ChatChannel < ApplicationCable::Channel
130130
# Called when the consumer has successfully become a subscriber of this channel
131131
def subscribed
@@ -182,7 +182,7 @@ Streams provide the mechanism by which channels route published content
182182
(broadcasts) to its subscribers.
183183

184184
```ruby
185-
# app/channels/application_cable/chat_channel.rb
185+
# app/channels/chat_channel.rb
186186
class ChatChannel < ApplicationCable::Channel
187187
def subscribed
188188
stream_from "chat_#{params[:room]}"

0 commit comments

Comments
 (0)