Generate a text file for user to download

Hi there,

This is what I would like to do:

the user selects data that they would like from the database.

The app gets the data and saves it to a .txt file (or preferably a .csv
file so they can look at it in a spreadsheet such as Excel)

The file is saved to the users computer or the user downloads it.

Is this possible with RoR?

Chris.

A quick google gives you what you need

http://blog.teksol.info/articles/2006/03/23/returning-csv-data-to-the-browser

-Jonathan.

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