I have a child object with an alternate partial form. Further to this question, I'm able to render the object using a partial form like this:
<%= render 'child_items/alternate_partial', :collection => parent_item.child_items %>
But I can't seem to access members of the collection in the partial. When I was using:
<%= render parent_item.child_items %>
the partial could just go <%= child_item.property %>
and everything worked. But when I'm doing this the top way (and it seems that I have to, if I want to specify the partial), any reference to child_item
throws a NameError. How do I get at the collection item inside the partial?