Hello champs,
Currently i have given a link to my document as like:-
'/controller/action/holidaylist.xls' and i have placed this file in my
own created directory 'ABC' at RAILS_ROOT only.
And in my controller, i have written like:-
send_data(File.read("#{RAILS_ROOT}/ABC/" + file_name),
:file_name => file_name
:disposition => "inline")
Now whenever i clicked it, my firefox browser prompts a window to open
it. That is something i do not want. I want to view it in browser only..
Can someone light me some direction over it so that i can move forward
.. ?
--
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.