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

推荐订阅源

V
Visual Studio Blog
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
The Cloudflare Blog
D
DataBreaches.Net
J
Java Code Geeks
G
Google Developers Blog
L
LangChain Blog
N
Netflix TechBlog - Medium
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
小众软件
小众软件
量子位
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
博客园_首页
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
腾讯CDC

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
Propshaft default for Rails 8, Guides updates, transactio...
David Heinemeier Hansson · 2024-05-31 · via Ruby on Rails: Compress the complexity of modern web apps

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

Rails World 2024 speaker lineup announced!
As well as another small run of tickets going live on June 4 at 2pm ET!

The Rails Foundation documentation team has also submitted two Rails guides for community review. If you have feedback, please submit it here: Action View Form Helpers Guide and the Active Record Migrations Guide.

Change asset pipeline default to Propshaft in Rails 8
Sprockets has served us well, but it’s time to hand over the torch to Propshaft in Rails 8.

Add a Rails Guide called “Tuning Performance for Deployment”
This guide explains major concurrency and performance principles for Puma and CRuby.

Pass the transaction object to “transaction.active_record” subscribers
The Active Support Instrumentation event for transaction.active_record now comes with the transaction in the payload, way you can refer to transactions if you need to trace database activity.

Include the current transaction in “sql.active_record” event payloads
After the previous change, we also include the current transaction in sql.active_record event payloads. This allows tracing database activity including the ability to group queries by transaction, thanks to the recently added ActiveRecord::Transaction#uuid.

Define Digest::UUID.nil_uuid
As defined in RFC 4122 the so-called nil UUID is now added to Digest::UUID.

Update public directory during app:update command
This PR fixes a bug when upgrading Rails versions where the app:update command did not generate new files in /public. For example, upgrading from Rails 7.1 to 7.2 does not create the new 406-unsupported-browser.html file.

Update permissions policy list with display-capture and keyboard-map
Since display-capture (Chrome 94) and keyboard-map (Chrome 97) are now standardized policy controlled features.

Improve compatibility for “ActiveSupport::BroadcastLogger”
This PR changes the return value for all logging methods to return true, similar to the Logger class in Ruby.

Add CSP mapping for “wasm-unsafe-eval”
The 'wasm-unsafe-eval' keyword for the Content Security Policy allows the loading and execution of WebAssembly modules without the need to allow unsafe JavaScript execution via 'unsafe-eval'.

Improve ActionCable’s TestCookieJar interface
This PR makes using ActionCable::Connection::TestCookieJar similar to ActionDispatch::Cookies::CookieJar with regards to setting the cookie value.

Raise a descriptive error when a Store column is misconfigured
If a developer has neglected to use a structured column type (hstore or json) or to declare a serializer with ActiveRecord.store, then a ConfigurationError will now be raised with a nice error message instead of a NoMethodError with no detail.

Make pretty_print behave more similar to inspect
This Pull Request makes the behavior of pretty_print on Active Record objects match that of inspect, instead of using the “raw” attribute it uses attribute_for_inspect.

Fix non-partial inserts for models with composite identity primary keys
When doing non-partial inserts, we should ignore not only unchanged columns with a default function, but also which are autoincremented in the database (and so don’t have a default function).

Catch StandardError during Base64 decoding in message encryptor
RubyGems.org got recently facing 500 HTTP responses since user mangled cookies (app uses cookie store) and provided custom value which (thanks to series of edge-cases) ended up triggering NoMethodError: undefined method unpack1' for nil raised down from Base64 class.

Index Result rows rather than to convert them into hashes
This optimization improves the performance of Result#each by avoiding to convert each row into a hash.

Add “ActiveRecord::Relation#readonly?”
A new method added to the relation object lets developers check if it was marked readonly.

Fix AllowBrowser versions
This PR updates the :modern browser settings when using the allow_browser helper to support Chrome v120+ and Opera v106+, which includes support for CSS nesting.

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

Until next time!

Subscribe to get these updates mailed to you.