You might want to consider using save! instead of save.
On a validation error save will return false, while save! will raise an exception.
You might want to consider using save! instead of save.
On a validation error save will return false, while save! will raise an exception.