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
|
||||
render :question
|
||||
else
|
||||
flash.delete(:answer_error)
|
||||
# TODO: change params.key? to submit = save/next/summary
|
||||
# redirect_to :summary and return if params.key?(:update)
|
||||
redirect_to :saved and return if params.key?(:save)
|
||||
|
Loading…
Reference in New Issue
Block a user