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

Methods
M
N
Attributes
[R] model
Class Public methods
new(model)
# File activerecord/lib/active_record/errors.rb, line 187
def initialize(model)
  @model = model
end
Instance Public methods
message()
# File activerecord/lib/active_record/errors.rb, line 191
def message
  "Unknown primary key for table #{model.table_name} in model #{model}."
end