method

find_by!

find_by!(arg, *args)
public

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