Preface to the Rails 7.2 Edition
Rails 7.0 was released in December of 2021. It’s been rock solid in that Rails 7.0 apps can be upgraded to Rails 7.1 and Rails 7.2 with minimal effort. The Rails core team has been working hard to make sure that the upgrade path is as smooth as possible.
On the flip side, Rails 7.1 and 7.2 introduced a number of changes that make writing books on the subject a bit more challenging. I’ll give three examples:
First, the most mundane: Rails 7.2 introduces RuboCop as the default linter.[1] This is a good thing, but it means that literally every code example in the book had to be checked and updated to pass RuboCop’s checks. This was a lot of work, but it was worth it.
Second, the behavior of the destroy action ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access