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
what is sweeper in Rails?
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?
Explain Get and post method?
how does ruby on rails use the model view controller (mvc) framework?
what are some advantages of using ruby on rails?
What are the major components of Ruby on Rails?
what is Rails Active Record in Ruby on Rails?
How are observers and callbacks different from each other?
What is a webrick web server?
What does session and cookies represent in ruby on rails?
what the difference between static scaffolding and Dynamic scaffolding?
What is the naming convention for variables?