Sha256: b062adf7ed4b461678bd7abc91103485a6e3119cc1d617403ba2c92c5fc9c315

Contents?: true

Size: 741 Bytes

Versions: 45

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

45 entries across 45 versions & 6 rubygems

Version Path
actioncable-8.0.2 lib/rails/generators/channel/USAGE
actioncable-next-0.2.0 lib/rails/generators/channel/USAGE
actioncable-next-0.1.2 lib/rails/generators/channel/USAGE
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actioncable-7.1.3.4/lib/rails/generators/channel/USAGE
actioncable-8.0.1 lib/rails/generators/channel/USAGE
actioncable-8.0.0.1 lib/rails/generators/channel/USAGE
actioncable-7.2.2.1 lib/rails/generators/channel/USAGE
actioncable-7.1.5.1 lib/rails/generators/channel/USAGE
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