Flush buffer in rails

render :text => lambda { |resp, out|
  out.puts 'start'
  2.times do
    out.puts '.'
    sleep 1
  out.puts 'done'

Hi, using that code (find in archive), I am only able to print the whole
chunk not step by step. Any idea? I use mongrel and lighttpd. Both does
not work if webserver influence this.

I know I’m reviving an old post, but I’m facing the same problem, and I
can’t find ANYTHING that helps. I’ve been searching for a couple days at
least - no luck. Does anyone have any insight or knowledge on this?

Looks like this is only possible when using FastCGI.