Add Poll booth_assignments and :Poll::BoothAssignment manage routes, actions and views

This commit is contained in:
Bertocq
2017-10-19 19:27:26 +02:00
parent 3daf957813
commit 45d91a7e50
9 changed files with 64 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ Rails.application.routes.draw do
resources :annotations do
get :search, on: :collection
end
resources :polls, only: [:show, :index] do
resources :questions, controller: 'polls/questions', shallow: true do
post :answer, on: :member
@@ -273,10 +273,12 @@ Rails.application.routes.draw do
scope module: :poll do
resources :polls do
get :booth_assignments, on: :collection
patch :add_question, on: :member
resources :booth_assignments, only: [:index, :show, :create, :destroy] do
get :search_booths, on: :collection
get :manage, on: :collection
end
resources :officer_assignments, only: [:index, :create, :destroy] do