I have an area on my site where a user can upload files to the server. The files are not restricted to the type of file. Everything works in Firefox etc, but safari tries to open the file in a new window resulting in gibberish for filetypes it does not understand. I can "save linked file" and everything works fine. However for usability I want the file to download automatically when the link is clicked. I used carrierwave to upload the files.
Here is what My link looks like
<%= link_to document.name,"#{document.file}"%>