AutoCommit Fre Jul 31 18:03:05 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-31 18:03:05 +02:00
parent 02b3a651ca
commit 8a867b72a3
11 changed files with 221 additions and 31 deletions

View File

@@ -34,7 +34,7 @@ class Survey::ChoicesController < ApplicationController
# GET /survey/choices/1/edit
def edit
@survey_choice = Survey::Choice.find(params[:id])
@choice = Survey::Choice.find(params[:id])
end
# POST /survey/choices
@@ -65,7 +65,7 @@ class Survey::ChoicesController < ApplicationController
else
format.html { render action: "edit" }
format.json { render json: @survey_choice.errors, status: :unprocessable_entity }
end
5 end
end
end