On 28 Jun 2010, at 17:56, Mamadou Touré wrote:

I want to display a pdf on my browser bu using
send_data(File.read(FILE_PATH + FILE_NAME), :type =>
'application/pdf',:disposition => 'inline', :filename => FILE_NAME)

But nothing happens. Do you know why ?

Serving it via AJAX or a normal request? Files always need to be served as a normal request. Otherwise you should make sure that the PDF as well as the path is valid.

If it isn't one of these two, you'll have to dig in deeper yourself and provide the list with more information.


Best regards

Peter De Berdt

--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to