Implements answering questions

This commit is contained in:
kikito
2016-11-14 13:36:00 +01:00
parent 598b1b9c01
commit 1f9945d0aa
6 changed files with 9 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ Rails.application.routes.draw do
end
resources :polls, only: [:show, :index] do
resources :questions, only: [] do
resources :questions, only: [], controller: 'polls/questions' do
post :answer, on: :member
end
end