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?
No Answer is Posted For this Question
Be the First to Post Answer
what is the command to create a migration?
What are the different types of association relationships that exist?
What can Rails Migration do?
What is the process for creating a controller for the subject? What is its role?
How are Model views and controllers related?
Tell me what is coc in rails?
What are the types of caching used in rails, what are they?
What are filters? and how many types of filters are there in ruby
How is calling super() different from the super call?
what is rake in Rails?
Choosing between belongs_to and has_one?
what is active record?