Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

What is the difference between Post.find(3) and Post.find_by_id(3) ?

find_by will not throw the exception if post with an id=3 will not be found
find_by_id method doesn't even exists in Rails!
there is no difference, "find" is an alias for "find_by_id" method
find_by_id will return collection instead of single record
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon