From 2e03bb64ab17fd51cea0125da9bfec1526813ed6 Mon Sep 17 00:00:00 2001 From: Siddhant Bajaj Date: Sat, 3 Jun 2017 13:29:11 +0530 Subject: [PATCH] Modified conference_registrations_controller show method --- app/controllers/conference_registrations_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/conference_registrations_controller.rb b/app/controllers/conference_registrations_controller.rb index c229440e..48500baf 100644 --- a/app/controllers/conference_registrations_controller.rb +++ b/app/controllers/conference_registrations_controller.rb @@ -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