APIdock / Ruby on Rails
/
Browse About
method

third!

v4.2.1 - Show latest stable - Class: ActiveRecord::FinderMethods
third!()
public

Same as third but raises ActiveRecord::RecordNotFound if no record is found.

# File activerecord/lib/active_record/relation/finder_methods.rb, line 210
    def third!
      find_nth! 2
    end

Related methods

  • Instance methods
  • exists?
  • fifth
  • fifth!
  • find
  • find_by
  • find_by!
  • first
  • first!
  • forty_two
  • forty_two!
  • fourth
  • fourth!
  • last
  • last!
  • raise_record_not_found_exception!
  • second
  • second!
  • take
  • take!
  • third
  • third!
  • Protected methods
  • protectedfind_last
  • protectedfind_nth
  • protectedfind_nth!
  • protectedfind_nth_with_limit
  • protectedfind_one
  • protectedfind_some
  • protectedfind_take
  • protectedfind_with_ids
  • Private methods
  • privateapply_join_dependency
  • privateconstruct_join_dependency
  • privateconstruct_relation_for_association_calculations
  • privatefind_with_associations
  • privatelimited_ids_for
  • privateoffset_index
  • privateusing_limitable_reflections?
APIdock API Documentation Browser

© 2026 APIdock