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 main difference between procs and blocks?

0 Answers  


Write the command to update rvm in rails.

0 Answers  


How is dynamic scaffolding different from static scaffolding?

0 Answers  


who developed rails?

0 Answers  


What does ruby name refer to?

0 Answers  






What is action cable?

0 Answers  


What is the naming convention for variables?

0 Answers  


Which command is used to create a migration?

0 Answers  


How would you create a controller for the subject?

0 Answers  


Explain the role of sub directory app/controllers and app/helpers.

0 Answers  


Explain model in rails?

0 Answers  


Do you know what is cross-site request forgery (csrf) and how rails is protected against it?

0 Answers  


Categories