Sha256: 9d28a91e83db3473c0c4eecc2d60ef3d93c2ae0c5321de64cf066d85c0e84db3

Contents?: true

Size: 567 Bytes

Versions: 4

Compression:

Stored size: 567 Bytes

Contents

Description:
============
    Stubs out a new cable channel for the server (in Ruby) and client (in CoffeeScript).
    Pass the channel name, either CamelCased or under_scored, and an optional list of channel actions as arguments.

    Note: Turn on the cable connection in app/assets/javascript/cable.coffee after generating any 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
actioncable-5.0.0.beta3 lib/rails/generators/channel/USAGE
actioncable-5.0.0.beta2 lib/rails/generators/channel/USAGE
actioncable-5.0.0.beta1.1 lib/rails/generators/channel/USAGE
actioncable-5.0.0.beta1 lib/rails/generators/channel/USAGE