Sha256: 4b9b99c1d299f33fbf4a74d57945060ec07a87baeee361f12d7493e5b345e8e3

Contents?: true

Size: 518 Bytes

Versions: 38

Compression:

Stored size: 518 Bytes

Contents

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

Example:
========
    bin/rails generate channel Chat speak

    creates a Chat channel class, test and JavaScript asset:
        Channel:    app/channels/chat_channel.rb
        Test:       test/channels/chat_channel_test.rb
        Assets:     $JAVASCRIPT_PATH/channels/chat_channel.js

Version data entries

38 entries across 36 versions & 4 rubygems

Version Path
actioncable-7.0.4.3 lib/rails/generators/channel/USAGE
actioncable-7.0.4.2 lib/rails/generators/channel/USAGE
actioncable-7.0.4.1 lib/rails/generators/channel/USAGE
actioncable-7.0.4 lib/rails/generators/channel/USAGE
actioncable-7.0.3.1 lib/rails/generators/channel/USAGE
actioncable-7.0.3 lib/rails/generators/channel/USAGE
actioncable-7.0.2.4 lib/rails/generators/channel/USAGE
actioncable-7.0.2.3 lib/rails/generators/channel/USAGE
actioncable-7.0.2.2 lib/rails/generators/channel/USAGE
actioncable-7.0.2.1 lib/rails/generators/channel/USAGE
actioncable-7.0.2 lib/rails/generators/channel/USAGE
actioncable-7.0.1 lib/rails/generators/channel/USAGE
actioncable-7.0.0 lib/rails/generators/channel/USAGE
actioncable-7.0.0.rc3 lib/rails/generators/channel/USAGE
actioncable-7.0.0.rc2 lib/rails/generators/channel/USAGE
actioncable-7.0.0.rc1 lib/rails/generators/channel/USAGE
actioncable-7.0.0.alpha2 lib/rails/generators/channel/USAGE
actioncable-7.0.0.alpha1 lib/rails/generators/channel/USAGE