mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
14 lines
486 B
Text
14 lines
486 B
Text
Description:
|
|
============
|
|
Stubs out a new cable channel and its CoffeeScript assets. Passes the chanel name, either
|
|
CamelCased or under_scored, and an optional list of channel actions as arguments.
|
|
|
|
This generates a channel class in app/channels.
|
|
|
|
Example:
|
|
========
|
|
rails generate channel Chat speak
|
|
|
|
creates a Chat channel class and CoffeeScript asset:
|
|
Channel: app/channels/chat_channel.rb
|
|
Assets: app/assets/javascript/channels/chat.coffee
|