From: Arthur Chan Date: 2009-08-10T21:02:37+09:00 Subject: Re: Flush HTML head Thanks Brian! I've reposted the question to Rails. Brian Candler wrote: > Arthur Chan wrote: >> What command I should use to flush html head to client in my >> layout.rhtml? >> >> I've tried "$stdout.flush" but weird, the CSS total time seems to be >> longer after using the flush. > > If this is a problem with Ruby On Rails (the web application framework), > it would be best asked on a Rails mailing list. This one is for Ruby > (the programming language). > > I'm pretty sure that in any web framework, you'll find that stdout is > not the socket connected to the client. In normal Rails request > processing, the whole response body is built *before* it starts being > sent back to the client. If you want to do low-level stuff like sending > progressive pages, look at the Rack API (which Rails now runs on top of, > and exposes as "Rails Metal"). -- Posted via http://www.ruby-forum.com/.