Methods

Files

Class/Module Index [+]

Quicksearch

ActiveRecord::UnknownPrimaryKey

Raised when a primary key is needed, but there is not one specified in the schema or model.

Attributes

model[R]

Public Class Methods

new(model) click to toggle source
# File lib/active_record/errors.rb, line 187
def initialize(model)
  @model = model
end

Public Instance Methods

message() click to toggle source
# File lib/active_record/errors.rb, line 191
def message
  "Unknown primary key for table #{model.table_name} in model #{model}."
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.