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
How does router work in rails?
How to use two databases into a single application?
What is the importance of rjs?
What is the rail console?
How do I find only duplicate entries in a database table?
What I have to do to view my project always on browser?
What is rails script? Name some of them?
Explain me what is the function of orm in ruby on rails?
What is ruby on rails & why it is used for?
who developed rails?
what the difference between static scaffolding and Dynamic scaffolding?
Is ruby on rails popular?