Sha256: 1ec17fb4b9647564b49ab91b1c06ef39c4bf03595f99a731521144eb3003bd5b

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 KB

Contents

===============================================================================

Routing setup you must do manually if you haven't yet:

  Rails.application.routes.draw do
    resources :meetings, only: [:index, :show, :create, :destroy] do
      resources :meeting_attendees, as: :attendees, path: :attendees, only: [:index, :show]
    end
  end

Examples:

If you generated controllers with room as parent resource by --parent option, setup routes like this:

  Rails.application.routes.draw do
    resources :rooms do
      resources :meetings, only: [:index, :show, :create, :destroy] do
        resources :meeting_attendees, as: :attendees, path: :attendees, only: [:index, :show]
      end
    end
  end

If you generated controllers for Rails API with api as namespace by --namespace option, setup routes like this:

  Rails.application.routes.draw do
    namespace :api do
      scope :"v1" do
        resources :meetings, defaults: { format: :json }, only: [:index, :show, :create, :destroy] do
          resources :meeting_attendees, as: :attendees, path: :attendees, only: [:index, :show, :create, :destroy]
        end
      end
    end
  end

===============================================================================

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amazon-chime-sdk-rails-2.0.1 lib/generators/templates/controllers/README
amazon-chime-sdk-rails-2.0.0 lib/generators/templates/controllers/README
amazon-chime-sdk-rails-1.1.1 lib/generators/templates/controllers/README
amazon-chime-sdk-rails-1.1.0 lib/generators/templates/controllers/README
amazon-chime-sdk-rails-1.0.0 lib/generators/templates/controllers/README