chore: On tickets#show add back link to order#show

Instead of going back to dashboard, user now goes to order
details.
This commit is contained in:
kbe
2025-09-07 00:21:36 +02:00
parent 7694e50fa0
commit ceb5a13297
3 changed files with 6 additions and 4 deletions

View File

@@ -58,7 +58,10 @@ class TicketsController < ApplicationController
redirect_to dashboard_path, alert: "Billet non trouvé"
return
end
@event = @ticket.event
@order = @ticket.order
rescue ActiveRecord::RecordNotFound
redirect_to dashboard_path, alert: "Billet non trouvé"
end