How can I get further information on errors that occur silently in Rails, such as @object.save?
Add bang so that an error is raised when validation fails.
@article.save!
# ActiveRecord::RecordInvalid: Validation failed: Title can't be blank...
Always use this method in preference to save
if you don't expect validation to fail.
As per this post, something like the following works:
logger.debug @item.errors.full_messages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With