MCQs > IT & Programming > Ruby On Rails > What is the difference between find() and find_by_id() method?

Ruby On Rails MCQs

What is the difference between find() and find_by_id() method?

Answer

Correct Answer: find() will raise an error in case record does not exist for a given primary key whereas find_by_id() will not raise an error and will return nil

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