From 05fa9e8d3d95905aaf6f3a36735297c83ae2b508 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Thu, 18 Jun 2020 12:02:59 -0700 Subject: [PATCH] set @user correctly --- app/controllers/physical_tickets_controller.rb | 1 + app/views/physical_tickets/index.html.haml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/physical_tickets_controller.rb b/app/controllers/physical_tickets_controller.rb index bc917b6e..b4404aa7 100644 --- a/app/controllers/physical_tickets_controller.rb +++ b/app/controllers/physical_tickets_controller.rb @@ -9,6 +9,7 @@ class PhysicalTicketsController < ApplicationController def index @physical_tickets = current_user.physical_tickets.by_conference(@conference) @unpaid_ticket_purchases = current_user.ticket_purchases.by_conference(@conference).unpaid + @user = current_user end def show diff --git a/app/views/physical_tickets/index.html.haml b/app/views/physical_tickets/index.html.haml index fa543735..bf71cecc 100644 --- a/app/views/physical_tickets/index.html.haml +++ b/app/views/physical_tickets/index.html.haml @@ -9,7 +9,9 @@ .text-muted Your tickets for the conference - - if !@conference.user_registered?(@user) + - if !@conference.user_registered?(@user) + .row + .col-md-12 %strong You are not yet registered for the conference. = link_to 'Complete Registration',