I'm trying to add the impressionist mixin into a controller I've got in Rails 5.1, but I'm running into an issue. The controller doesn't have a model associated with it, so the Impression won't save, with the validation error ActiveRecord::RecordInvalid: Validation failed: Impressionable must exist.
I'm trying to add the
impressionist
mixin into a controller I've got in Rails 5.1, but I'm running into an issue. The controller doesn't have a model associated with it, so the Impression won't save, with the validation errorActiveRecord::RecordInvalid: Validation failed: Impressionable must exist
.