Use .first! and .last! ActiveRecord Finder Methods
Today I learned there are accompanying ! methods for .first and .last finder methods.
As you might expect, these methods raise an ActiveRecord::RecordNotFound if there is no first or last record to be found.
h/t Craig Hafer
Tweet