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

推荐订阅源

P
Proofpoint News Feed
Martin Fowler
Martin Fowler
The GitHub Blog
The GitHub Blog
B
Blog RSS Feed
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
量子位
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
IT之家
IT之家
V
Visual Studio Blog
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
D
Docker
V
V2EX

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 6.0.4, Lots of Active Storage goodies, and many Qua...
David Heinemeier Hansson · 2021-06-18 · via Ruby on Rails: Compress the complexity of modern web apps

Hello, zzak here with the latest changes from the last week to Rails.

Rails 6.0.4 was released

This release includes many bug fixes so be sure to upgrade! You can read the full summary of changes here.

Improve security of untyped bound values in MySQL

This solves a potential query manipulation vulnerability with MySQL.

Improve usability of multi-db when config is invalid

A helpful exception is now raised if pool_config is nil when using config.active_record.writing_role(:all).

Enhancements to Active Record Encryption

After introducing encryption into Active Record, a couple new features and a bug fix were followed!

Add support for eager loading Active Storage variants

This PR removes N+1 queries from Active Storage when using with_all_variant_records and with_attached_* scope.

Fix strict loading through associations

Previously there was a bug when using strict_loading where eager loading wouldn’t propagate through associations.

Use the current Rails version inside package.json

Previously when generating a new Rails app, the package.json would hard-code the string “6.0.0” for all npm dependencies. This now uses the Rails version that generated the app.

Add support for Active Storage expiring URLs

This allows expiring URLs for signed blob ids in Active Storage via the “expires_in” parameter or by setting a default with “config.active_storage.urls_expire_in”.

Support default “cache_control” in Active Storage for GCS

This PR adds support for setting the default “cache_control” headers for uploads using Google Cloud Storage service.

Use FFmpeg scene detection for generating video previews

By using the built-in features of FFmpeg, Active Storage now generates much better thumbnails for videos. These parameters were also made configurable in a follow-up PR!

Deprecate “purge” and “purge_later” on Active Storage attachments association model

You should be calling these methods directly on the attachment and not on the association.

Add Model.update! that is similar to Model.update but raises exceptions

You may be familiar with the instance method Model#update!, but now you can do that on the class!

Performance regression in CollectionAssociation#build

This fixes a huge performance bug for inversing associations with a lot of records.

Reduce stat(2) calls

Classic nobu. This patch was later optimized in a follow-up PR.

Don’t attach UJS form submission handlers to Turbo forms

This quality-of-life improvement is for apps migrating from RailsUJS to Turbo with both living inside the codebase to easily distinguish which should handle forms.

28 people contributed to Rails since last time. All the changes can be checked here. Until next week!