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?


A quick google gives you what you need