惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
博客园 - 叶小钗
The Cloudflare Blog
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
小众软件
小众软件
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
宝玉的分享
宝玉的分享

Ruby on Rails: Compress the complexity of modern web apps

Safer to_i coercion, custom to_fs formats, and more! This Week in Rails: May 16, 2026 This Week in Rails: May 8, 2026 This Week in Rails: May 1, 2026 Active Record gets better every week Great big Rails World 2026 update: CFP, Corporate Support tickets, workshops Query command for database queries and more Explicit query: and body: kwargs for integration tests and more! Speedup ActiveRecord::LogSubscriber#sql_color and more! This Week in Rails: March 27, 2026 Rails Versions 8.0.5 and 8.1.3 have been released! Rails Versions 7.2.3.1, 8.0.4.1, and 8.1.2.1 have been released! This Week in Rails: March 20, 2026 Validate URI scheme in Action Text and more This Week in Rails: March 6, 2026 Planning Center is the newest Rails Foundation Contributing member Action Text gets Markdown conversion, editor links in devcontainers, and more! BARRA seeks Rails developer Joe Agliozzo is looking for a Rails developer The rise of lighttpd as the alternative web server When longer is better and more is more Snowdevil: First e-tailer on Rails Natural selection for frameworks in Ruby vs Java Address book tutorial in Portuguese Becoming a better programmer with Rails 10 Things Every Java Programmer Should Know About Ruby Really Getting Started in Rails Off the Treadmill, Onto the Rails Rails 0.9.5: A world of fixes and tweaks Rich clients with Rails and XUL
Squish as fast as you can
David Heinemeier Hansson · 2026-01-23 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, January 23, 2026
Posted by claudiob

Hi, it’s Claudio Baccigalupo. Let’s explore this week’s changes in the Rails codebase.

Optimize String#squish
A RegExp improvement in the Rails codebase makes squishing a string twice as fast.

Render stream errors are reported to Rails.error
Now that Rails has a dedicated API to report errors we can call it also when an error is raised during streaming.

reload! will reset the console’s executor when present
The Rails console is wrapped with an executor which can have side effects such as implicitly enabling the Query Cache. After this PR, calling reload! will not just reload the console, but reset the executor too.

Detect JS package manager from lockfiles in generators
Generators can now use the lockfiles to detect the package manager, whether it’s bun (bun.lockb or bun.lock), pnpm (pnpm-lock.yaml), npm (package-lock.json), or yarn (yarn.lock or default).

Skip unique index lookup for insert_all!
insert_all! uses on_duplicate: :raise which performs a plain INSERT without any ON CONFLICT clause. Previously, find_unique_index_for was called unconditionally which caused unnecessary failures for tables with composite primary keys.

Add &block params to ActionController methods using yield
Several methods in Action Controller used block_given? or yield without explicitly declaring a &block parameter. While this is valid Ruby, it created issues for static analysis tools like Sorbet that check for blocks being passed to methods.

Load minitest server plugin to run minitest with –bisect option
Before this, minitest_bisect with --bisect option raised the invalid option: --server.

Upgrade from bundler 2.7.2 to 4.0.4
The bundler version in the Gemfile.lock is now the latest: bundler 4.0.4.

Explicitly use Marshal serializer for MemCacheStore Dalli client
There are no options to change the serializer for MemCacheStore Dalli so it’s safe to assume Marshal will be used.

Deprecate queue_classic Active Job adapter
This is the last Active Job adapter to be ejected. The queue_classic gem gem has not seen any activity in two years.

Handle Ruby 4.1 stabby lambda in Proc#source_location start_column
Adjusts the code for a recent change in Ruby to include the full syntax definition in the source, even when using stabby lambdas

You can view the whole list of changes here.
We had 22 contributors to the Rails codebase this past week!

Until next time!

Subscribe to get these updates mailed to you.