Source: show
# File engines/member/app/controllers/member/invoices_controller.rb, line 15 def download render pdf: "Invoice - #{invoice.date_short}", layout: "pdf", template: "member/invoices/show", disposition: "attachment", formats: [:html] end
# File engines/member/app/controllers/member/invoices_controller.rb, line 10 def show @show_download = true render layout: "pdf" end