Topic: Relationships<->controllers question
Hi, I am a newbie Rails and web developer and I am having trouble locating examples/tutorials/howtos on the topic of creating forms for a model that has belongs_to relationship.
Say, I have two tables: person and address, one-to-many relationship.
Say, I just created a new person and want to create an address for that person.
What is the best practice of passing person_id to the address(new-create) controller?
It seems that all the books and tutorials omit this question or I am just blind.
Could somebody refer me somewhere? I am trying not to scaffold as I want to understand fundamentals.