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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---