Tuesday, April 3, 2012

[Rails] streaming partials

Hi everyone!
I'm looking for a railsy way to stream partial views in Rails 3.2+.
Right now streaming is supported only for yielding via provide.
But say I have 10 posts in a blog page, and each post is generated in
partial in about 300ms and I want user to start reading the first post
immediately as it's ready.

Is it possible in rails now? Is there a way to explicitly "flush" the
generated output like in php?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate