person = Person.find(4123) person.destroy #=> false
What ways do I have to find out why the record wasn\'t deleted? The model has two validations, b
This error is usually raised due to a dependent: :restrict_with_error specified on an association in the model. Run a quick search for this in your model definition (as well as associated model definitions) and see if that's the case.
dependent: :restrict_with_error