A quick google gives you what you need
http://blog.teksol.info/articles/2006/03/23/returning-csv-data-to-the-browser
-Jonathan.
On 8/6/06, Chris Finch <cptfinch@gmail.com> wrote:> 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.
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>