[Rails] PHP ob_start in Ruby

eduard
2006-01-19T17:40:26Z

I need to include Content-Length in each file.  In PHP it would be:

<?php
   ob_start();
?>

html

<?php
   header(''Content-Length: '' . ob_get_length());
ob_end_flush();
?>

How can I do the same in Ruby?

Thanks,
eduard
-------------- next part --------------
An HTML attachment was scrubbed...