From 3b6260a2821e88f1f0911236167a4fd4b6effdd1 Mon Sep 17 00:00:00 2001 From: dquach217 Date: Fri, 16 Aug 2019 14:27:04 -0400 Subject: [PATCH] feat: alert if user is redirected when arriving to rsvp --- app/controllers/rsvps_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/rsvps_controller.rb b/app/controllers/rsvps_controller.rb index 578206a93..cf846ad56 100644 --- a/app/controllers/rsvps_controller.rb +++ b/app/controllers/rsvps_controller.rb @@ -106,7 +106,7 @@ def check_user_has_questionnaire def require_accepted_questionnaire return if @questionnaire.can_rsvp? || @questionnaire.checked_in? - + flash[:alert] = "You had not been accepted" redirect_to new_questionnaires_path end end