Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Ruby On Rails Interview Questions and Answers

Ques. Explain the difference between a has_one and belongs_to association in Ruby on Rails.
Ans.
has_one: Indicates a direct 1:1 relationship between objects where each instance of a model contains one instance of another model.
A product has_one provider, a customer has_one order.


Is it helpful? Yes No

Most helpful rated by users:

©2022 WithoutBook