Friday, November 4, 2022

An improved error page, groundwork for composite primary keys and Stimulus 3.1.1

Posted by petrik

Hi, Petrik here with this week’s news from the Rails world.

Improve the “missing template” error page
This error page got a nice overhaul with clearer wording, making it more helpful, especially for beginners.

Allow specifying columns to use in ActiveRecord::Base object queries
Support for composite primary keys in Rails is getting prioritized. This change is fundamental for supporting composite primary keys in Rails and utilizing tenant based sharding.

Fix Time#change and Time#advance for times around the end of Daylight Saving Time
Previously, when Time#change or Time#advance constructed a time inside the final stretch of Daylight Saving Time (DST), the non-DST offset would always be chosen for local times. This commit fixes Time#change and Time#advance to choose the offset that matches the original time’s offset when possible.
If you are like me and find Daylight Saving Time confusing, the PR has better examples. 😄

Stimulus 3.1.1 has been released
This release fixes a memory leak and adds support for support custom Action Options.

There were 19 contributors to Rails this week. You can browse all the changes here.
Until next time.

Subscribe to get these updates mailed to you.