Sha256: b062adf7ed4b461678bd7abc91103485a6e3119cc1d617403ba2c92c5fc9c315

Contents?: true

Size: 741 Bytes

Versions: 37

Compression:

Stored size: 741 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.

Examples:
    `bin/rails generate channel notification`

    creates a notification channel class, test and JavaScript asset:
        Channel:    app/channels/notification_channel.rb
        Test:       test/channels/notification_channel_test.rb
        Assets:     $JAVASCRIPT_PATH/channels/notification_channel.js

    `bin/rails generate channel chat speak`

    creates a chat channel with a speak action.

    `bin/rails generate channel comments --no-assets`

    creates a comments channel without JavaScript assets.

Version data entries

37 entries across 37 versions & 5 rubygems

Version Path
actioncable-8.0.0 lib/rails/generators/channel/USAGE
actioncable-7.2.2 lib/rails/generators/channel/USAGE
actioncable-7.1.5 lib/rails/generators/channel/USAGE
actioncable-8.0.0.rc2 lib/rails/generators/channel/USAGE
actioncable-7.2.1.2 lib/rails/generators/channel/USAGE
actioncable-7.1.4.2 lib/rails/generators/channel/USAGE
actioncable-8.0.0.rc1 lib/rails/generators/channel/USAGE
actioncable-7.2.1.1 lib/rails/generators/channel/USAGE
actioncable-7.1.4.1 lib/rails/generators/channel/USAGE
actioncable-next-0.1.1 lib/rails/generators/channel/USAGE
actioncable-next-0.1.0 lib/rails/generators/channel/USAGE
actioncable-8.0.0.beta1 lib/rails/generators/channel/USAGE
omg-actioncable-8.0.0.alpha9 lib/rails/generators/channel/USAGE
omg-actioncable-8.0.0.alpha8 lib/rails/generators/channel/USAGE
omg-actioncable-8.0.0.alpha7 lib/rails/generators/channel/USAGE
omg-actioncable-8.0.0.alpha4 lib/rails/generators/channel/USAGE
omg-actioncable-8.0.0.alpha3 lib/rails/generators/channel/USAGE
omg-actioncable-8.0.0.alpha2 lib/rails/generators/channel/USAGE
actioncable-7.1.4 lib/rails/generators/channel/USAGE
actioncable-7.2.1 lib/rails/generators/channel/USAGE