hey all
i'm trying to send a pdf to the browser, to display inline, like this:
send_file("#{RAILS_ROOT}/tmp/#{filename}",
:filename => filename, :disposition => "inline")
But, it keeps coming through as a downloadable attachment rather than
being shown in the browser. I don't think it's my firefox settings
because when i go to other pages that have pdf links then they're shown
inline, eg
http://www.thefms.org/wp-content/uploads/2009/05/fms-programme_lr.pdf
Can anyone see the problem?
thanks
max
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---