This should be straightforward but a search hasn’t helped:
I want to convert this:
<% for post in @posts %>
<% end %>
into THIS:
<% for post in @posts %>
<%= render :partial => ‘postblock’%
<% end %>
but just moving the PostBlock div into _postblock.rhtml gives an invalid
action for “post.” How can I cleanly separate this? I’ve also tried
using :collection => @posts but the documentation on :collection is very
poor. Thanks!