title: Rails 3 output flushing
body: <p>How can I "flush" output in Ruby on Rails 3?</p>
  
  <p>In PHP  I would do something like the following:</p>
  
  <pre><code>$i = 0;
  $total = count($result);
  foreach ( $result as $item ) {
      $i++;
      time_consuming_action($item);
      echo "Finished $i of $total&lt;br&gt;";
      flush();
  }
  </code></pre>