From b52d4cd485830b759fe8380f42fc1a1e5989c7fc Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Mon, 30 Dec 2024 20:01:16 +0100 Subject: Fixed redirection bug. --- app/controllers/scores_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/scores_controller.rb') diff --git a/app/controllers/scores_controller.rb b/app/controllers/scores_controller.rb index 650c4e6..8d494e4 100644 --- a/app/controllers/scores_controller.rb +++ b/app/controllers/scores_controller.rb @@ -33,7 +33,7 @@ class ScoresController < ApplicationController redirect_to root_path, notice: "Vos scores pour la tartiflette #{@tartiflette.scoring_id} ont été mis à jour." rescue StandardError => e - redirect_to edit_tartiflette_scores_path(@tartiflette), + redirect_to root_path, alert: "Erreur lors de l'enregistrement de vos scores : #{e.message}" end -- cgit v1.2.3