Wouldn't send_data work for this?

http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000254

Rui Neto wrote:
> Try to set the headers in the start of your action, something like this:
> 
> headers['Content-Type'] = "application/vnd.ms-excel"
> headers['Content-Disposition'] = 'attachment; 
> filename="excel-export.xls"'
> headers['Cache-Control'] = ''
> 
> Cheers.
> 
> [ rui ]
> [ Seiri, Seiton, Seisō, Seiketsu e Shitsuke ]
> 
> 
> 
> On Mon, Nov 3, 2008 at 12:58 PM, Shandy Nantz

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to