On Thu, 24 Jul 2008, Sujith Gangaraju wrote:
> I''d like to load a PDF file into a page, in my controller:
>
> send_file "/path to/my.pdf", :disposition =>
"inline"
>
> However, instead of rendering inline, it asks to download the file.
>
> How can I display the contents without downloading? using ruby on rails
Are you sending the correct MIME type in your response?
Assuming you are and you''re getting the same result, then Im assuming
your
browser doesn''t know what to do with PDF files (either it
doesn''t have any
PDF plugins or is configured incorrectly for PDF files).
--
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---