streaming with rails 3.1 and ruby 1.8.7

Hey!

I’m working with an app where migrating to ruby 1.9.2 is currently not an option, so I can not use Rails 3.1 streaming.

One of the features is sending large XML and CSV files. In Rails 3.0 I used the self.response_body {} hack which worked pretty OK.

This stopped working in Rails 3.1.

How can I do streaming with Rails 3.1 and ruby 1.8.7?

-m.