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
187:     def initialize(model)
188:       @model = model
189:     end
Instance Public methods
message()
     # File activerecord/lib/active_record/errors.rb, line 191
191:     def message
192:       "Unknown primary key for table #{model.table_name} in model #{model}."
193:     end