This post brings us to the last in the “An Overview Of Ruby on Rails 7.1 Features” series. Rails has improved a lot over the years, no question ab

An Overview Of Ruby on Rails 7.1 Features. Part III.

submited by
Style Pass
2023-01-23 11:00:12

This post brings us to the last in the “An Overview Of Ruby on Rails 7.1 Features” series. Rails has improved a lot over the years, no question about that, but this minor version, in my books, is the most exciting. Rails now comes inbuilt with Dockerfiles. Who’d have thought?

This fully backwards-compatible pull request adds the ability to pass a list of error classes to Rails.error.handle and Rails.error.record. ErrorReporter now allows you to handle several error classes in one go. You can now handle multiple error classes like so:

This involves a fix and some improvements to the API documentation. In the past, if you did something like check_box_tag "admin", "1", checked: false you’d expect that some checkbox would be unchecked right? Wrong! That piece of code wasn’t doing what one would expect it to do. This pull request fixes that.

It doesn’t stop there, it goes ahead and updates check_box_tag and radio_button_tag to support checked as a positional or keyword argument, and improves the API documentation for both check_box_tag and radio_button_tag.

Leave a Comment