I have a ProductionHolder page that uses <% control Children %> to loop through all its Production objects. Each Production has a has_many with Characters. I need to loop through Characters inside of that loop. How do I do that?
Here's what I have:
<% control Children %>
$Title
$Date
$Content
<% control character %>
$name
<% end_control %>
<% end_control %>
This looks like it's on the right track, but it's throwing a database error. It's filtering by the "ParentID" field, which doesn't exist, on the Character object when it should be filtering based on the ProductionID field.
Why ParentID? What did I do wrong?