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

推荐订阅源

T
The Blog of Author Tim Ferriss
IT之家
IT之家
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
C
Check Point Blog
T
Tailwind CSS Blog
博客园 - Franky
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
博客园 - 叶小钗
J
Java Code Geeks
腾讯CDC
罗磊的独立博客
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
B
Blog
V
Visual Studio Blog
F
Fortinet All Blogs

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
Logging, raising and rescuing errors and a fix for a quer...
David Heinemeier Hansson · 2022-08-19 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, August 19, 2022
Posted by Emmanuel Hayford

Cześć! I’m Emmanuel, and I have some updates for you from Rails.

Log a warning if ActiveSupport::Cache is given an expiration in the past Imagine trying to write/fetch to/from a cache and the operation fails silently because expires_at is in the past… a debugger’s nightmare. This PR helps. You won’t get an error raised, instead, you’ll get “Cache expiration is in the past” in your logs.

Define and raise error if legacy_connection_handling= is called from an app In Rails 6.0 if you switched to a role, say reading, then all database connections would also switch to that role. In Rails 6.1 however, you could set legacy_connection_handling to false to disable this behaviour. legacy_connection_handling was removed in Rails 7 without setting it to false by default, causing an error. This PR fixes that by redefining legacy_connection_handling and raising an error.

Fix ActiveRecord::QueryMethods#in_order_of to work with nils This PR fixes an issue where an invalid SQL is generated when nil is passed to in_order_of.

Rescue EOFError error from rack on a multipart request EOFError is added to the list of rescued errors that can arise from a multipart POST request, raising a ActionController::BadRequest exception and rendering a 400 Bad Request instead of 500 Internal Server Error.

Add description of breaking changes and the deprecation cycle to guides This PR clarifies the deprecation cycle. This is mostly to help contributors but a good addition to the documentation nonetheless.

We had 11 contributors since last week.

That’s it. Do zobaczenia!