This is probably a noob question..
I have a fairly large query (the result takes along time to return)
that I need to export to CSV after it is displayed with a view.
Basically a link at the bottom of the page, "Export to CSV". I've
found the rails wiki solution:
http://wiki.rubyonrails.com/rails/pages/HowtoExportDataAsCSV . The only
problem is that I would like to have this in it's own controller and
I'm wondering how I should keep a handle on the ActiveRecord object
that has already been created from the query, I would also like to keep
this as DRY as possible and not have to regenerate the query. Should I
store the ActiveRecord object in the session variable or ???
Thanks for any help or advice,