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

Post New Answer

More Ruby on Rails Interview Questions

what is the command to create a migration?

0 Answers  


What are the different types of association relationships that exist?

0 Answers  


What can Rails Migration do?

0 Answers  


What is the process for creating a controller for the subject? What is its role?

0 Answers  


How are Model views and controllers related?

3 Answers  






Tell me what is coc in rails?

0 Answers  


What are the types of caching used in rails, what are they?

0 Answers  


What are filters? and how many types of filters are there in ruby

2 Answers   Baidu, TCS,


How is calling super() different from the super call?

0 Answers  


what is rake in Rails?

0 Answers  


Choosing between belongs_to and has_one?

0 Answers  


what is active record?

0 Answers  


Categories