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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
T
Tailwind CSS Blog
V
Visual Studio Blog
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
量子位
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
Jina AI
Jina AI
雷峰网
雷峰网
博客园 - 【当耐特】
博客园 - 叶小钗
美团技术团队
宝玉的分享
宝玉的分享
IT之家
IT之家

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
This Week in Rails - August 25
David Heinemeier Hansson · 2023-08-25 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, August 25, 2023
Posted by Wojtek

Hi, Wojtek here. Let’s explore last 2 week’s changes in the Rails codebase.

Rails Versions 7.0.7.2, 6.1.7.6 have been released
Just after the previous security releases 7.0.7.1, 6.1.7.5 but with fixed file permissions.

MRSK renamed to Kamal
Due to a trademark claim, the project was renamed to Kamal.

Add after_discard method to Active Job
It lets job authors to define a block which will be run when a job is about to be discarded.

Ensure response.parsed_body support for pattern matching
Both Nokogiri and Minitest supports Ruby’s Pattern matching. By parsing the JSON contents of response.parsed_body with ActiveSupport::HashWithIndifferentAccess, it’s now pattern-matching compatible and can be used with Minitest’s new assert_pattern method.

Add support for Playwright as a driver for system tests
Playwright is getting popularity as a new browser automation tool. There is a community-maintained Ruby client and Capybara driver as well.

Generate config.autoload_lib for new Rails 7.1 apps
New 7.1 applications will autoload from lib directory out of the box. The new line in config/application.rb contains: config.autoload_lib(ignore: %w(assets tasks)).

Allow redefining to_param delimiter using param_delimiter
Adds ActiveModel::Conversion.param_delimiter to configure delimiter being used in to_param method.

Deprecate read_attribute(:id) returning the primary key
Starting in Rails 7.2, read_attribute(:id) will return the value of the id column, regardless of the model’s primary key. To retrieve the value of the primary key, one can use #id instead. read_attribute(:id) for composite primary key models will now return the value of the id column.

Use alias_attribute to provide id_value alias for id attribute
As the follow up to the above, added ActiveRecord::Base#id_value alias to access the raw value of a record’s id column. This alias is only provided for models that declare an :id column.

Sort mailers on the mailer preview page alphabetically

Add an option to start rails console in sandbox mode by default
sandbox_by_default option is added to start rails console in sandbox mode by default. With this option turned on, --no-sandbox must be specified to start rails in non-sandbox mode. Note that this option is ignored when rails environment is development or test.

Fix host display when X_FORWARDED_HOST authorized
Fix HostAuthorization potentially displaying the value of the X_FORWARDED_HOST header when the HTTP_HOST header is being blocked.

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

Until next time!

Subscribe to get these updates mailed to you.