If you want to set up a one-to-one relationship between two models, you'll need to add belongs_to to one, and has_one to the other. How do you know which is which?
455Post New Ruby on Rails Questions
What are generators in ruby on rails?
What are the hashes?
What can Rails Migration do?
what is the naming convention in Rails?
what are helpers and how to use helpers in ror?
What are models in rails?
How are blocks created?
How is direct different from render?
How can you protect filter methods in rails?
What is a webrick web server?
Tell me what is orm (object-relationship-model) in rails?
How are observers and callbacks different from each other?
What role do sub-directory app/helpers and app/controllers play?
what is Ruby on Rails?
What are the three methods to install ruby on rails?