Permalink
Browse files

added :disposition => 'attachment' option to README

  • Loading branch information...
1 parent 566481a commit a5974eeab1d281bc97ab9c22bd8a2bb6e5f9aed2 @kabturek committed Apr 24, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
View
@@ -44,6 +44,7 @@ or add this to your Gemfile:
format.html
format.pdf do
render :pdf => 'file_name',
+ :disposition => 'attachment', # default 'inline'
:template => 'things/show.pdf.erb',
:layout => 'pdf.html', # use 'pdf.html' for a pdf.html.erb file
:wkhtmltopdf => '/usr/local/bin/wkhtmltopdf', # path to binary

0 comments on commit a5974ee

Please sign in to comment.