Sometimes AR silently fails for reasons other than validation errors. A couple more things to check:
- AR callbacks that do not return true (e.g. before_save)
- Invalid Parent / Child Records
- @ item.valid ?, @ item.errors.full_messages
- @ item.changes, @ item.changed?
I also included user456584 with thanks for checking validation errors. And, as Semyon said, @ item.save! at least throw an exception, even if it is not particularly useful.
source share