diff options
author | orangea <adrian.bloomer@gmail.com> | 2010-01-23 09:20:46 -0800 |
---|---|---|
committer | orangea <adrian.bloomer@gmail.com> | 2010-01-23 09:20:46 -0800 |
commit | f4571e3617ccd9cc9e5ee9f7431066bd80395e22 (patch) | |
tree | 4aa197f6d1381179f77498226221ef31b046cffb /railties | |
parent | c718da5351922c0ac0a3b4c1e18935cde4dd8065 (diff) | |
download | rails-f4571e3617ccd9cc9e5ee9f7431066bd80395e22.tar.gz rails-f4571e3617ccd9cc9e5ee9f7431066bd80395e22.tar.bz2 rails-f4571e3617ccd9cc9e5ee9f7431066bd80395e22.zip |
generate_pdf gets it's parameter now
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/action_controller_overview.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile index 46a28da8c4..bedca59c12 100644 --- a/railties/guides/source/action_controller_overview.textile +++ b/railties/guides/source/action_controller_overview.textile @@ -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 |