Skip to content

Commit

Permalink
saves file before sending
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontross committed Aug 13, 2012
1 parent 99ff623 commit ad25f73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
kit = PDFKit.new(erb :pdf)
# kit.stylesheets << './public/stylesheets/style.css'
f = File.new('./tmp/Joshua_Montross_Resume.pdf','w+').write(kit.to_pdf) # inline PDF
f.save
send_file './tmp/Joshua_Montross_Resume.pdf', :filename => "Joshua_Montross_Resume.pdf"
end

Expand Down

0 comments on commit ad25f73

Please sign in to comment.