If you are following the documentation, then you are probably outputting something like this:
send_data data, :filename => "myfile.pdf", :type => 'application/pdf'
I don't know if this is specific to Rails 3, but the issue is that the Content-Type header is not being set to 'application/pdf', so setting it explicitly in the response should fix this issue:
response.headers["Content-Type"]='application/pdf' send_data data, :filename => "myfile.pdf", :type => 'application/pdf'
Hi. This service here allows you to easily edit your PDF documents.
ReplyDeletehttp://goo.gl/PQEilT
You can fill out PDF form, save it, fax it, and email it.
Hey J,
ReplyDeletethank you so much for that great hint! Had the same problem (with rails 4 and firefox) which is now solved.