MCQs > IT & Programming > Ruby On Rails > What is difference between 'has_one' and 'belong_to'?

Ruby On Rails MCQs

What is difference between "has_one" and "belong_to"?

Answer

Correct Answer: "belong_to" should be used in a model whose table have foreign keys while "has_one" is used with an associated table.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it