RubyFlow The Ruby and Rails community linklog

Rails 6.1's ActiveModel Errors Revamp

https://code.lulalala.com/2020/0531-1013.html

As Rails developers, we are all used to the book.errors(:title) interface. This has remained relatively stable up until now, but is soon going to change. I’d like to share the new model errors changes, before Rails 6.1rc1 gets released. The article contains a list of deprecation and recommended replacements offered in the new implementation. I hope to get some feedback, and see if we need to improve the upgrade guide a bit, to make the migration process less painful.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in