In my rails 3 app I use fastercsv to create a csv file to screen, works great now... but how do I instead have it open a dialog to save the file to the user's local system?
Asked
Active
Viewed 620 times
1 Answers
1
Check out this SO answer (the one with 19 upvotes, not the accepted answer): in rails, how to return records as a csv file
The key is sending the file with the headers['Content-Disposition']

Community
- 1
- 1

Jesse Wolgamott
- 40,197
- 4
- 83
- 109