This is the wrong list to ask that question but in your controller action
that responds to the link you have to call send file and probably the
mimetype
def get_readme
send_file("files/README.txt", :filename =>
''yo_readme.txt'')
end
Try googling that for more options
Cheers
Ivan
On Wed, May 21, 2008 at 6:40 PM, Sunny Bogawat <lists at ruby-forum.com>
wrote:
> Hi,
> i want a such code which helps me download a csv file to each client
> machine when he click on download link, for this i am tried lots thing
> but it working for IE, but not for mac, Mozilla, safari.
> i want a optimum solution which works for all situation when i click on
> link, it give me pop up saying where to download file. i need help that
> what changes i do in controller on rhtml.
> please reply.
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20080521/91be4037/attachment.html>