From 7be7f97c90c784a06dfb13ec001280f6a6fa6244 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Thu, 4 Aug 2016 09:55:51 -0500 Subject: [PATCH] cleaning up custom flash key --- app/controllers/candidate_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/candidate_controller.rb b/app/controllers/candidate_controller.rb index 59fd244..344c663 100644 --- a/app/controllers/candidate_controller.rb +++ b/app/controllers/candidate_controller.rb @@ -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)