Topic: Database/Data relation mapping
Okay, I'm new to rails, but I'm starting a project. I have a question.
Okay, lets say I have a database of people. Each row is a different person with columns such as name, address, etc. Now, there's also a column for spouse, so this column needs to hold the id of another person from the same table. How would I implement a drop down list of the "name" column which would enter the id of the spouse? Assume I'm just working from a basic scaffold (because I am right now). Also, what would be the proper naming convention for the "spouse" column in the database?
Last edited by PhogHawk (2006-07-09 09:14:56)