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

推荐订阅源

云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
爱范儿
爱范儿
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
博客园_首页
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园 - Franky
量子位
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence

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
Rails community survey, improved association validation e...
David Heinemeier Hansson · 2024-05-10 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, May 10, 2024
Posted by Wojtek

Hi, Wojtek here. Let’s explore this week’s changes in the Rails.

The bi-annual Rails community survey is live!
Your input is invaluable and will help the team at Planet Argon gather insight on the current state of the Rails community. Fill in the survey here. (And feel free to share with your teams). The survey will remain open until August 2nd, 2024, and the findings released shortly thereafter.

A New Era for Ruby Central Events
Ruby Central announced that 2025 will be the last year of RailsConf and they are inviting the community to vote on where the last edition should be held. Read the full announcement here, and cast your vote.

Fix index_errors and provide :nested_attributes_order mode
This indexes the association validation errors based on the order received by nested attributes setter, and respects the reject_if configuration. This enables API to provide enough information to the frontend to map the validation errors back to their respective form fields.

Add flag to speed up multi-process test runs
Add ENV[“SKIP_TEST_DATABASE_TRUNCATE”] flag to speed up multi-process test runs on large databases, when all tests run within default transaction. This cuts ~10 seconds from the test run of HEY when run by 24 processes against the 178 tables, since ~4,000 table truncates can then be skipped.

Replace allocations count by GC time in request logs
Allocations count is often an interesting proxy for performance, but not necessarily the most relevant thing to include in request logs, given they aren’t a per thread metric, so the reporting is widely inaccurate in multi-threaded environments.

Since Ruby 3.1 there is now GC.total_time which is a monotonically increasing counter of time spent in GC. It still isn’t really a per thread metric, but it is more interesting because it uses the same unit as the response time, allowing to better see when you have a GC pause performance issue.

Explain that the default Dockerfile is intended for production
If people want to use Docker in development, they’d need a radically different setup, and are likely much better served by dev containers.

Don’t mess with Minitest unless RAILS_ENV is set
Minitest will automatically scan all installed gems and load plugins from those gems. We should detect whether or not we’re being run within the context of a Rails app and only change MT behavior in that case.

Warn about changing “query_constraints” behavior
Add a deprecation warning for the query_constraints: association option. This option will change behavior in the future versions of Rails and applications are encouraged to switch to foreign_key: to preserve the current behavior.

Consistently use desired test adapter in Active Job
All tests now respect the active_job.queue_adapter config, which previously was not always the case.

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

Until next time!

Subscribe to get these updates mailed to you.