diff options
author | Marius Peter <marius.peter@tutanota.com> | 2024-12-30 20:01:16 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2024-12-30 20:01:16 +0100 |
commit | b52d4cd485830b759fe8380f42fc1a1e5989c7fc (patch) | |
tree | 6e838a5544e2985708f22bf842cf1a23a360d368 /app | |
parent | 7616d984cbab4e83c36b721b3a52188110ae7dfa (diff) |
Fixed redirection bug.
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/scores_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |