cleaning up custom flash key
This commit is contained in:
parent
f8f471fba3
commit
7be7f97c90
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user