Raised when a primary key is needed, but there is not one specified in the schema or model.
Methods
Attributes
[R] | model |
Class Public methods
Source: show
# File activerecord/lib/active_record/errors.rb, line 177 def initialize(model) @model = model end
Instance Public methods
Source: show
# File activerecord/lib/active_record/errors.rb, line 181 def message "Unknown primary key for table #{model.table_name} in model #{model}." end