set @user correctly
This commit is contained in:
parent
3432b9fd9e
commit
05fa9e8d3d
2 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ class PhysicalTicketsController < ApplicationController
|
||||||
def index
|
def index
|
||||||
@physical_tickets = current_user.physical_tickets.by_conference(@conference)
|
@physical_tickets = current_user.physical_tickets.by_conference(@conference)
|
||||||
@unpaid_ticket_purchases = current_user.ticket_purchases.by_conference(@conference).unpaid
|
@unpaid_ticket_purchases = current_user.ticket_purchases.by_conference(@conference).unpaid
|
||||||
|
@user = current_user
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,9 @@
|
||||||
.text-muted
|
.text-muted
|
||||||
Your tickets for the conference
|
Your tickets for the conference
|
||||||
|
|
||||||
- if !@conference.user_registered?(@user)
|
- if !@conference.user_registered?(@user)
|
||||||
|
.row
|
||||||
|
.col-md-12
|
||||||
%strong
|
%strong
|
||||||
You are not yet registered for the conference.
|
You are not yet registered for the conference.
|
||||||
= link_to 'Complete Registration',
|
= link_to 'Complete Registration',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue