This actual error handler module does not handle well forms attributes. This approach seens better: https://driggl.com/blog/a/handling-exceptions-in-rails-applications