Rails : model.save returns false but models.errors is an empty hash

ruby-on-rails, ruby-on-rails-3

Solution

This means that one of your callbacks is probably stopping the save, but isn't listing a validation error.

Check the return values, especially of any `before_` callbacks and make sure that they are not returning `false`

If they return `false`, then active record will stop future callbacks and return false from the save.

You can read a little bit about it here under "canceling callbacks"

Problem

I have a model object on which .save is returning false. It subsequently has a .errors property which is an empty hash. Shouldn't the hash contain a list of what went wrong? How else can I determine why the save is not working? TY, Fred

Original source