generate_pdf gets it's parameter now
This commit is contained in:
parent
c718da5351
commit
f4571e3617
@ -625,9 +625,9 @@ class ClientsController < ApplicationController
|
||||
# returns it. The user will get the PDF as a file download.
|
||||
def download_pdf
|
||||
client = Client.find(params[:id])
|
||||
send_data(generate_pdf,
|
||||
send_data generate_pdf(client),
|
||||
:filename => "#{client.name}.pdf",
|
||||
:type => "application/pdf")
|
||||
:type => "application/pdf"
|
||||
end
|
||||
|
||||
private
|
||||
|
Loading…
Reference in New Issue
Block a user