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
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?
At is cross-site request forgery (csrf)?
What is a proc ?
What is the difference between symbol and string?
what is the difference between new, save and create?
what is the difference between destroy and delete?
Is Ruby is a Scripting Language or Compiled Language?
how you can list all routes for an application?
Explain what is the role of the subdirectories app/controllers and app/helpers in rails?
Who developed ruby on rails?
Explain rvm in rails?
How to use two databases into a single application?