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

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cloudbric
Cloudbric
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
S
Secure Thoughts
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
Attack and Defense Labs
Attack and Defense Labs
T
The Blog of Author Tim Ferriss
Vercel News
Vercel News
The Last Watchdog
The Last Watchdog
L
LINUX DO - 最新话题
T
Tailwind CSS Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Scott Helme
Scott Helme
博客园 - Franky
I
InfoQ
Cisco Talos Blog
Cisco Talos Blog
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
Help Net Security
Help Net Security
M
MIT News - Artificial intelligence
GbyAI
GbyAI
B
Blog
K
Kaspersky official blog
博客园 - 【当耐特】
AWS News Blog
AWS News Blog
O
OpenAI News
A
About on SuperTechFans
F
Fortinet All Blogs
PCI Perspectives
PCI Perspectives
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
A
Arctic Wolf
酷 壳 – CoolShell
酷 壳 – CoolShell
Application and Cybersecurity Blog
Application and Cybersecurity Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
CXSECURITY Database RSS Feed - CXSecurity.com
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News

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 Pedrosa on Rails vs WebWork: 'Language DOES matter' 'Ruby on Rails is unbelievably good' Celebrating six months anniversary! Speeding up CGI access to Gem Rails CD Baby leaves PHP behind for Ruby on Rails "I think Ruby on Rails is way over hyped" Programmer needed for JSP to Rails conversion Beyond the 10,000th gem install of Rails 'That application is so stupid' Matz takes note of Ta-da and Rails Rails tutorial on O'Reilly's ONLamp Welcome Slashdotters! Ta-da goes international with UTF-8 Make your Ta-da list today Rails 0.9.4.1: Cleaning up the mess Rails 0.9.4: Caching, filters, SQLite3... An unusual high presence of Macs Having problems running tests under 1.8.2? It\'s all about the applications But what does Rails go web services with XML-RPC prototype Rails runs through XP Cincinnati RedHanded out-evangelizes the evangelizer Rails on Lighttpd with FastCGI Have a codefest and collect cash from RubyCentral Jamis Buck is working on Basecamp S5 Presents competes with SoapBX 3,000 people are doing 10,804 things... Using the Rails to impress potential employers Brian discovers the default logging goodness SoapBX: Presentations powered by S5, Textile, Rails Road Map: The rails leading to 1.0 Tracks: A Getting Things Done implementation Nicholas presents the Directors Rails 0.9.3: Optimistic locking, dynamic finders, 1.8.2 Ruby on the German Rails 43things in 5,204 lines of Ruby on Rails Watch for huge requests on default FCGI How the redesign of the website came to be Are you watching the health of your software? "Some amazing web apps appear on Ruby on Rails" Learning Ruby on Rails with 43things The Robot Co-op takes 43things.com live! Giving up on Java for lack of love Setting up EliteJournal on TextDrive without a vhost Celebrating 219 applied patches since 0.7 Escaping Java but not its thinking "Simple design that even my grandma can understand" Rails logo remixed by Olivier Hericord Rake 0.4.14 includes fix for Ruby 1.8.2 Splitting off the research patches Running rake tests with Ruby 1.8.2 Marten opens Epilog for Trac'ing Drew McLellan predicts Rails celebrates more than 10,000 downloads Variations on a railed theme Securing your Rails: Keep it secret, keep it safe Available for hire? Collaboa and EliteJournal joins the Trac Playing Active Records on MS SQLServer and DB2 Open sourcing the Rails logo Rails: Technology of the Year #1 Reacting to customer requests in real time Extracting missing content from wiki backups Ruby on Rails has its web presence overhauled 43 things makes The Seattle Times 5.gets David Heinemeier Hansson Ruby 1.8.2 finally sees the light of day Rails 0.9: Fast development, breakpoints, validations Rails 0.9.1: Small, but important bugfix for Action Pack
Active Support Instrumentation Documentation, QueryIntent#execute! and more!
David Heinemeier Hansson · 2025-11-28 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, November 28, 2025
Posted by vipulnsward

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

Active Support Instrumentation Documentation
This Pull Request updates the Active Support Instrumentation documentation to receive various additions, improvements and more. It is now open for review and feedback from the community!

Ensure TimeWithZone#as_json always returns a UTF-8 string
This PR addresses a regression in Rails 8.1.0 where ActiveSupport::TimeWithZone#as_json was returning strings with incorrect encoding. Since Time#xmlschema returns a US-ASCII encoded string, as_json was returning US-ASCII instead of UTF-8. The fix ensures that the JSON representation always returns a properly encoded UTF-8 string.

Handle closed PostgreSQL connections in retryable_query_error?
When a PostgreSQL connection dies unexpectedly, retryable_query_error? calls @raw_connection.transaction_status, which raises PG::ConnectionBad on a closed connection. The PostgreSQL adapter’s retryable_query_error? previously handled two scenarios: when the connection is nil or when it’s alive. This PR adds handling for a third case where the connection object exists but is closed, by rescuing PG::ConnectionBad and allowing the retry logic to proceed appropriately.

Handle asynchronous raise in all of reconnect!
Three operations—reconnect, reset_transaction, and clear_cache—could take considerable time and remain susceptible to TimeoutError exceptions, potentially corrupting connection state. This change extends the exception-handling approach to fully encompass the entire reconnect! method.

Ensure variants are loaded and processed synchronously just once
A fix has been introduced to avoid reprocessing variants during preview redirects. Previously, when generating a preview (e.g., for PDFs or videos), Active Storage would create the variant on the primary database, but a second lookup happened on a read replica before replication caught up — causing unnecessary reprocessing and failures. The change ensures the same variant instance is reused within the request, preventing redundant database queries and variant creation errors.

Fix TimeWithZone#xmlschema when wrapping DateTime local time ActiveSupport::TimeWithZone#xmlschema was producing invalid ISO-8601 strings when instantiated with a DateTime used as local time. The implementation incorrectly assumed that time.iso8601 always ends with "Z".

tz  = ActiveSupport::TimeZone["America/New_York"]
twz = ActiveSupport::TimeWithZone.new(nil, tz, DateTime.new(2025, 11, 7, 12))

twz.xmlschema
# Before
"2025-11-07T12:00:00+00:0-05:00" # invalid

# After
"2025-11-07T12:00:00-05:00" # correct

The fix updates the method to replace the entire timezone suffix (whether Z or ±HH:MM) instead of just the final character, ensuring correct timezone offset calculation for both Time and DateTime instances.

Fix CI eager loading when rake tasks invoke :environment before tests
The test environment sets config.eager_load = ENV["CI"].present? to enable eager loading in CI and catch autoloading bugs. However, when gems invoke the :environment rake task before tests run, Rails overrides this setting with config.rake_eager_load (which defaults to false), disabling eager loading in CI. This PR adds config.rake_eager_load = ENV["CI"].present? to the generated test environment configuration, ensuring eager loading behavior remains consistent in CI regardless of whether rake tasks trigger the :environment hook.

QueryIntent#execute!
This PR introduces QueryIntent#execute! to improve Active Record’s internal query execution architecture. Previously, query intents were passive containers passed through the system, but now they can actively execute queries and store results. This refactoring makes QueryIntent instances self-sufficient. They know which adapter they belong to and can ask the adapter to do work like query preprocessing. The change streamlines the query execution flow and sets the foundation for better handling of query results in different formats (raw or cast).

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

Until next time!

Subscribe to get these updates mailed to you.