Download code for application

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs