method

find_by!

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::FinderMethods
find_by!(arg, *args) public

Like #find_by, except that if no record is found, raises an ActiveRecord::RecordNotFound error.

Show source
Register or log in to add new notes.