fixes routes for poll's results and stats

This commit is contained in:
rgarcia
2017-10-23 21:34:28 +02:00
parent ca63e4998f
commit 21c7ff15fe
4 changed files with 20 additions and 18 deletions

View File

@@ -113,8 +113,10 @@ Rails.application.routes.draw do
end
resources :polls, only: [:show, :index] do
get :stats
get :results
member do
get :stats
get :results
end
resources :questions, controller: 'polls/questions', shallow: true do
post :answer, on: :member
end