update für questions

This commit is contained in:
Andreas Stephanides
2015-07-31 18:32:36 +02:00
parent 8a867b72a3
commit cd5f415ca1
4 changed files with 19 additions and 29 deletions

View File

@@ -16,7 +16,7 @@ class Survey::ChoicesController < ApplicationController
@survey_choice = Survey::Choice.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.html {redirect_to @survey_choice.question}
format.json { render json: @survey_choice }
end
end