Skip to Content Skip to Search

Raised when Active Record cannot find a record by given id or set of ids.

Methods
N

Attributes

[R] id
[R] model
[R] primary_key

Class Public methods

new(message = nil, model = nil, primary_key = nil, id = nil)

# File activerecord/lib/active_record/errors.rb, line 126
def initialize(message = nil, model = nil, primary_key = nil, id = nil)
  @primary_key = primary_key
  @model = model
  @id = id

  super(message)
end