mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 21:24:05 +00:00
tickets controller fix message
This commit is contained in:
parent
9ff8becaf6
commit
bb731aec00
2 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ class TicketPurchasesController < ApplicationController
|
|||
if message.blank?
|
||||
redirect_to conference_conference_registrations_path(@conference.short_title),
|
||||
notice: 'Congratulations, you have successfully purchased a ticket! ' \
|
||||
"You can pay it cash on check in! Thank you for supporting #{@conference.title}!"
|
||||
"You can pay for it in cash when you arrive! Thank you for supporting #{@conference.title}!"
|
||||
else
|
||||
redirect_to conference_conference_registrations_path(@conference.short_title),
|
||||
alert: "Oops, something went wrong with your purchase! #{message}"
|
||||
|
|
@ -19,10 +19,10 @@ class TicketPurchasesController < ApplicationController
|
|||
@ticket_purchases = current_user.ticket_purchases.find_by(ticket_id: params[:id])
|
||||
if @ticket_purchases.destroy
|
||||
redirect_to conference_conference_registrations_path(@conference.short_title),
|
||||
notice: 'Ticket successfully destroyed.'
|
||||
notice: 'Ticket successfully deleted.'
|
||||
else
|
||||
redirect_to conference_conference_registrations_path(@conference.short_title),
|
||||
notice: 'A error prohibited deleting your purchase! '\
|
||||
alert: 'An error prohibited deleting your purchase! '\
|
||||
"#{@ticket_purchases.errors.full_messages.join('. ')}."
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue