Ticket Purchase Index Page

List all the unpaid ticket purchases of the user for that conference and allow user to pay for them.
This commit is contained in:
siddhantbajaj 2017-06-26 06:07:52 +05:30
parent 2cc97a92f5
commit a327d2cbd2
5 changed files with 43 additions and 1 deletions

View file

@ -23,6 +23,10 @@ class TicketPurchasesController < ApplicationController
end
end
def index
@unpaid_ticket_purchases = current_user.ticket_purchases.by_conference(@conference).unpaid
end
private
def ticket_purchase_params