Split routes into small files for easier customization (#1852)

This commit is contained in:
Angel Perez
2017-09-21 17:45:33 -04:00
committed by Angel Perez
parent c4e0178947
commit 1cd47da9d4
25 changed files with 478 additions and 466 deletions

10
config/routes/poll.rb Normal file
View File

@@ -0,0 +1,10 @@
resources :polls, only: [:show, :index] do
member do
get :stats
get :results
end
resources :questions, controller: 'polls/questions', shallow: true do
post :answer, on: :member
end
end