aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/USAGE
blob: c061196d43a4d9c5ea2882d9a22f053fe7a4e108 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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