instance method
second!
Ruby on Rails 4.2.9
Since v4.1.16Signature
second!()
Same as second but raises ActiveRecord::RecordNotFound if no record is found.
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 182
def second!
find_nth! 1
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 182
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods