Commit 97b1aefda2034442c4b706e16adf5c402babcc97

Authored by Pius Uzamere
1 parent a2d4cad8

routes to support activation, deactivation

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/routes.rb
... ... @@ -4,7 +4,7 @@ ActionController::Routing::Routes.draw do |map|
4 4 question.resources :items
5 5 question.resources :prompts, :member => {:vote_left => :post, :vote_right => :post, :skip => :post, :vote => :post},
6 6 :collection => {:single => :get, :index => :get}
7   - question.resources :choices, :member => { :activate => :put, :suspend => :put, :update_from_abroad => :put }, :collection => {:create_from_abroad => :post}
  7 + question.resources :choices, :member => { :activate => :put, :suspend => :put, :update_from_abroad => :put, :deactivate_from_abroad => :put }, :collection => {:create_from_abroad => :post}
8 8 end
9 9 map.resources :algorithms
10 10 map.connect "/questions/:question_id/prompts/:id/vote/:index", :controller => 'prompts', :action => 'vote'
... ...