Added Token field for physical_ticket

Added token field in physical_ticket model. This token will also be stored in the qr code and will uniqely identify the ticket.
This commit is contained in:
siddhantbajaj 2017-07-10 20:43:27 +05:30
parent 0528dbf8e8
commit 9e154a1dcd
8 changed files with 33 additions and 9 deletions

View file

@ -32,12 +32,12 @@
.btn-group
= link_to 'Show',
conference_physical_ticket_path(@conference.short_title,
physical_ticket.id),
physical_ticket.token),
class: 'btn btn-primary'
= link_to 'Generate PDF',
conference_physical_ticket_path(@conference.short_title,
physical_ticket.id,
format: :pdf),
physical_ticket.token,
format: :pdf),
class: 'button btn btn-default btn-info'
- else
%h5 No Tickets sold!