W3cubDocs

/Ruby on Rails 6.0

class ActiveRecord::RecordNotFound

Parent:
ActiveRecord::ActiveRecordError

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

Attributes

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

Public Class Methods

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

  super(message)
end
Calls superclass method

© 2004–2019 David Heinemeier Hansson
Licensed under the MIT License.