My question has to do with Associations. Forgive me as I am just learning this.
I have two tables (parent & child). I have set up the associations where the parent table is set to has_many children and the child table has one parent with foriegn id set to parent_id. This is working fine.
My question is that I want to create a family view that shows both parents and children together and associated with each other. So it would look like this:
Parent Name
- Child Name
- Child Name
I am pretty sure I need to create a family table and do a has_and_belongs_to_many association but not sure how to show the two together like above Hope this makes sense.