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 ruby on rails use the model view controller (mvc) framework?
Name some rails ide or editor.
Write a program to show the functionality of request.xhr in ruby on rails ?
what is Rails Migration?
What is active record in rails?
What are the different types of association relationships that exist?
What are the steps involved in writing and setting up an application in ruby on rails?
When are self.up and self.down methods used?
what is different between activerecord::relation's count, length and size methods?
How to serialize data with yaml?
How many filters are there in rails.
Who developed ruby on rails?