How can ActiveRecord errors be read within the model itself?
I am deliberately putting error records in the form, however after the
command, the error messages show up in the browser.
How can the ActiveRecord messages be retrieved in the code itself,
either in the
model or the controller code, something like a try, except, catch ?