On 25 March 2010 13:17, Hemant Bhargava <[email protected]> wrote:
> 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

In the prompt window in FF there should be a checkbox 'Do this
automatically for files like this from now on' or something similar.
Check that and the file should open without prompting.

Colin

> .. ?
> --
> 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.
>
>

-- 
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.

Reply via email to