Methods

Files

Class 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
187:     def initialize(model)
188:       @model = model
189:     end

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.