method
first!
v4.2.1 -
Show latest stable
- Class:
ActiveRecord::FinderMethods
first!()public
Same as first but raises ActiveRecord::RecordNotFound if no record is found. Note that first! accepts no arguments.
first!()Same as first but raises ActiveRecord::RecordNotFound if no record is found. Note that first! accepts no arguments.