We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e2a9d commit 83d67fbCopy full SHA for 83d67fb
app/controllers/questionnaires_controller.rb
@@ -91,12 +91,13 @@ def update
91
update_params = questionnaire_params
92
update_params = convert_school_name_to_id(update_params)
93
94
+ @agreements = Agreement.all
95
respond_to do |format|
96
if @questionnaire.update_attributes(update_params)
97
format.html { redirect_to questionnaires_path, notice: 'Application was successfully updated.' }
98
format.json { head :no_content }
99
else
- format.html { redirect_to edit_questionnaires_url }
100
+ format.html { render action: "edit" }
101
format.json { render json: @questionnaire.errors, status: :unprocessable_entity }
102
end
103
0 commit comments