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

Am Fresher ..,i dont know seven controller methods.am searching in google .but am not getting .help me

0 Answers   Baidu,


What are float, dig and max?

0 Answers  


Explain me what is the function of orm in ruby on rails?

0 Answers  


Choosing between belongs_to and has_one?

0 Answers  


hi am b,tech 2011 passedout now am learnig ROR technology may i knw what is the feature of this one and what is the salary ranges to this i heard there is a less salaries to this technology give me valuable suggestions

0 Answers   Baidu, GTPL,






How is direct different from render?

0 Answers  


What is the difference between save and save?

0 Answers  


Why do we use request.xhr? in rails

2 Answers   IBM,


What are generators in ruby on rails?

0 Answers  


What is the symbol garbage collector?

0 Answers  


Mention the differences between the observers and callbacks in ruby on rails.

0 Answers  


Who designed active record in rails?

0 Answers  


Categories