Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/sechat/routes.rb

Instance Method Summary collapse

Instance Method Details

#sechatObject



4
5
6
7
8
9
10
11
12
# File 'lib/sechat/routes.rb', line 4

def sechat
  resources :questions do
    get :unanswered, :on => :collection
    
    resources :replies do
      put :answer, :on => :member
    end
  end
end