I have an ActiveRecord model which is returning true
from valid?
(and .errors is empty), but is returning false
from save()
. If the model instance is valid, how can I find out what's causing the save to fail?
Try using the bang version save!
(with an exclamation mark at the end) and inspecting the resulting error.