Ajax inserting a collection of partials


#1

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
end

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

Pat