Ajax inserting a collection of partials

I saw that I can use page.insert_html to insert some HTML code into a
page. Is it somehow possible to use a collection of partials? Right
now I’m having to do

Post.find(:all, :order => ‘created_at DESC’).each do |post|
page.insert_html :bottom, ‘posts’, :partial => ‘post’, :object => post

I’d really prefer to do
page.insert_html :bottom, ‘posts’, :partial => ‘post’, :collection =>
Post.find(:all, :order => ‘created_at DESC’)


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs