APIdock / Ruby on Rails
/
Browse About
method

second

v6.1.7.7 - Show latest stable - Class: ActiveRecord::Associations::CollectionProxy
second
public

Same as #first except returns only the second record.

# File activerecord/lib/active_record/associations/collection_proxy.rb, line 182

Related methods

  • Instance methods
  • <<
  • ==
  • any?
  • append
  • build
  • calculate
  • clear
  • concat
  • count
  • create
  • create!
  • delete
  • delete_all
  • destroy
  • destroy_all
  • distinct
  • empty?
  • fifth
  • find
  • first
  • forty_two
  • fourth
  • include?
  • inspect
  • last
  • length
  • load_target
  • loaded
  • loaded?
  • many?
  • new
  • pluck
  • prepend
  • proxy_association
  • push
  • records
  • reload
  • replace
  • reset
  • reset_scope
  • scope
  • second
  • second_to_last
  • select
  • size
  • take
  • target
  • third
  • third_to_last
  • Class methods
  • new
  • Private methods
  • privateexec_queries
  • privatefind_from_target?
  • privatefind_nth_from_last
  • privatefind_nth_with_limit
  • privatenull_scope?
APIdock API Documentation Browser

© 2026 APIdock