Forgive me if this has been answered, I looked through the archives
and didn't see anything similar to what I was looking for.
The question relates to the handling of has_many and belong_to relationship
between tables. I have created a simple poll and the poll has many poll items.
I can create a scaffold of both of the poll and poll items, but it doesn't make
sense to administer the poll items separately from the polls. I would have to
create a poll item and manually select a poll in which it is associated.
After a poll is created it would be ideal in the show action of the poll controller
to be able to list all the poll items associated with the poll and have the ability
to create, update and delete poll items to that particular poll.
I can create custom methods in the poll class to add all the functionality of what
a poll item scaffold would create, but is there a better way of handling a parent
child relationship so that a you could create children under the parent scaffold?