Download code for application

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
that responds to the link you have to call send file and probably the

def get_readme
send_file(“files/README.txt”, :filename => ‘yo_readme.txt’)

Try googling that for more options


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