cleaning up custom flash key

This commit is contained in:
Mark Moser 2016-08-04 09:55:51 -05:00
parent f8f471fba3
commit 7be7f97c90

View File

@ -113,6 +113,7 @@ class CandidateController < ApplicationController
flash[:answer_error] = answer_params[:question_id].to_i flash[:answer_error] = answer_params[:question_id].to_i
render :question render :question
else else
flash.delete(:answer_error)
# TODO: change params.key? to submit = save/next/summary # TODO: change params.key? to submit = save/next/summary
# redirect_to :summary and return if params.key?(:update) # redirect_to :summary and return if params.key?(:update)
redirect_to :saved and return if params.key?(:save) redirect_to :saved and return if params.key?(:save)