In Camping 2 you can return an object which responds to #each and the server will then stream it to the client. If you want the file to trigger a download-box on the user, you'll have to send Content-Disposition as Julik mentioned.
Something like this should work, although I'm not 100% sure: @headers['Content-Disposition'] = 'attachment; filename=table.csv' // Magnus Holm On Wed, Mar 3, 2010 at 17:04, Julik Tarkhanov <julian.tarkha...@gmail.com>wrote: > > On 3 mrt 2010, at 16:43, David Susco wrote: > > Is there something similar built into Camping? >> > > > Before it was so that you could return an IO object from your action and it > would just work. Dunno if Camping 2 still supports this. A > Content-Disposition header would be in order > so that your clients download a proper filename. > > -- > Julik Tarkhanov > m...@julik.nl > > > > > > > _______________________________________________ > Camping-list mailing list > Campingfirstname.lastname@example.org > http://rubyforge.org/mailman/listinfo/camping-list >
_______________________________________________ Camping-list mailing list Campingemail@example.com http://rubyforge.org/mailman/listinfo/camping-list