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 a proc ?
Who developed ruby on rails?
Tell me what is polymorphic association in ruby on rails?
What are the servers supported by ruby on rails?
Explain me what is the naming convention in rails?
what is the defined operator?
what is sweeper in Rails?
what is Mixin in Rails?
How you run your Rails Application without creating database ?
How you run your rails application without creating databases?
Explain what is the role of the subdirectories app/controllers and app/helpers in rails?
Do you know what is sweeper in rails?