Sha256: dd1b0da28bd23b0bc598f07337f7ef455c5de0ec9c5bd68b76fec3fdccc51566

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

Rails.application.routes.draw do  
  resources :users do
    resources :conversations, controller: "conversations/conversations", only: [:new, :create]
    resources :conversations, controller: "conversations/user_conversations", except: [:new, :create] do
      resources :messages, controller: "conversations/messages"
      member do
        post :mark_as_read
        post :mark_as_unread
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conversations-0.0.2.2 config/routes.rb
conversations-0.0.2.1 config/routes.rb
conversations-0.0.2 config/routes.rb