[Rails] PHP ob_start in Ruby

Dorian Mcfarland
2006-01-19T17:49:04Z

I think there should be a "how to do equivalent PHP function in Ruby"
page on the Wiki...

eduard wrote:
> 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
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails

--
I do things for love or money
--
+44 (0)7941 219 501
--
aim:oulalipo | yahoo:tachekent