PDA

View Full Version : How to download a file through a controller?


rubyonrails-talk
August 26th, 2006, 08:23 PM
Let's say I have a list of products. I want to put them into a .txt file
and then let the user download it. Is it possible to generate this and
then render it for the user to download? By this I mean a box would come
up asking the user where to save the file, not actually render the
contents in the browser.

More... (http://groups.google.com/group/rubyonrails-talk/msg/60604a2c50778bda)