Modified conference_registrations_controller show method
This commit is contained in:
parent
4a320c8823
commit
2e03bb64ab
1 changed files with 5 additions and 0 deletions
|
|
@ -31,6 +31,11 @@ class ConferenceRegistrationsController < ApplicationController
|
|||
@tickets = current_user.ticket_purchases.by_conference(@conference).paid
|
||||
@ticket_payments = @tickets.group_by(&:ticket_id)
|
||||
@total_quantity = @tickets.group(:ticket_id).sum(:quantity)
|
||||
@file_name = "ticket_for_#{@conference.short_title}"
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.pdf {}
|
||||
end
|
||||
end
|
||||
|
||||
def edit; end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue