I managed to find a workaround for streaming which worked: Here's the lighthouse ticket for this issue: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4554-render-text-proc-regression#ticket-4554-15
And an excellent post about this issue: http://patshaughnessy.net/2010/10/11/activerecord-with-large-result-sets-part-2-streaming-data/ To summarize: 1) render :text => proc seems to be broken in Rails3 2) the documentation is not updated to reflect it's broken (or deprecated) 3) you can use the self.response_body = proc approach like this: ========== class MainController < ApplicationController def test self.response_body = proc { |resp, out| # you can change this logic here to stream what you want. I tested it with some dynamically generated text. while ... out.write "Sample text" end } end end ========== Only problem with this is that the code in the proc gets executed twice (no idea why), so put an if clause to skip every other execution (: Will be glad to hear how you can solve this. 4) WEBrick didn't work for me, Mongrel works great. Running Debian, apache2, mongrel, ruby 1.9.2p35, rails3 Martin On Nov 9, 11:29 am, Gogov <[email protected]> wrote: > Same here. > > If you look around in the group, you'll find opinions like: > > "In rails 3, the render :text => lambda { ... } is definitely > broken. " > > So far I'm on the same page with this issue (: > > Martin > > On Oct 5, 5:33 pm, releod <[email protected]> wrote: > > > > > I would love to hear more on this as well. Currently suffering in > > Rails3 due to this not having a clear solution. -- 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.

