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

推荐订阅源

Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
M
MIT News - Artificial intelligence
S
SegmentFault 最新的问题
博客园 - 叶小钗
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
U
Unit 42
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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!