Forum: Ruby on Rails unexpected download popup

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
78a39f4b01110c221eff7d37285bdee7?d=identicon&s=25 Luma (Guest)
on 2009-02-07 16:05
(Received via mailing list)
I'm creating some pdfs using PDF::Writer:

def my_action
  invoice_pdf = render_to_string(:action => '../orders/
invoice.rpdf', :layout => false)
  path = ...
  File.open(path, "wb") {|f| f.write invoice_pdf}
end

At the end of the action, my_action.html.erb should be rendered. But
I'm getting an unexpected download popup:

(controller-name).pdf
type: Adobe Acrobat Document, 11.2 kb
from: http://localhost:3000

thanks,
Luma
This topic is locked and can not be replied to.