mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] Fix documentation wrong for ActionCable
This commit is contained in:
parent
dfd7c2f058
commit
3f9d380963
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ App.cable.subscriptions.create { channel: "ChatChannel", room: "Best Room" },
|
|||
```ruby
|
||||
# Somewhere in your app this is called, perhaps
|
||||
# from a NewCommentJob.
|
||||
ChatChannel.broadcast_to(
|
||||
ActionCable.server.broadcast(
|
||||
"chat_#{room}",
|
||||
sent_by: 'Paul',
|
||||
body: 'This is a cool chat app.'
|
||||
|
|
Loading…
Reference in a new issue