1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/lib/rails/generators/channel/USAGE
David Heinemeier Hansson 40cc72548f Basic channel generator
2015-12-15 21:39:22 +01:00

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