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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user