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

推荐订阅源

Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
腾讯CDC
D
Docker
G
Google Developers Blog
D
DataBreaches.Net
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
The Cloudflare Blog
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
量子位
美团技术团队
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Engineering at Meta
Engineering at Meta
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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 Foundation Docs, Query Logs source_location, Docker...
David Heinemeier Hansson · 2024-02-09 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, February 9, 2024
Posted by zzak

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

Rails Foundation Docs
A team has been formed to improve the existing Rails documentation. PRs from this project will stay open for one week for community review. Open this week:

  • ActiveJob.perform_all_later
  • Action Text
  • Action Mailbox

More to come!

Properly synchronize Mysql2Adapter#active? and TrilogyAdapter#active?
As well as disconnect! and verify!.
This generally isn’t a big problem as connections must not be shared between threads, but is required when running transactional tests or system tests and could lead to a SEGV.

Implement “Rails::TestUnitReporter#prerecord”
By adding this method to Rails TestUnitReporter class, Minitest will pick it up and invoke it before invoking the test, allowing to print the test name in advance.
This is useful to debug slow and stuck tests by turning on verbose mode. This way the stuck test name is printed before the process deadlocks.

Fix JSON-encoding ActiveStorage::Filename
This PR fixes a bug where quotes were missing from the filename, generating invalid json.

JSON.generate(foo: ActiveStorage::Filename.new("bar.pdf")) # => '{"foo":bar.pdf}'

Support :source_location tag option for query log tags
This PR adds support for showing where a query is defined the Rails logs when using Active Record Query Logs.

# application.rb
config.active_record.query_log_tags_enabled = true
config.active_record.query_log_tags = [ :source_location ]

Setup jemalloc in default Dockerfile to optimize memory allocation
Ruby’s use of malloc can create memory fragmentation problems, especially when using multiple threads like Puma does.
Switching to an allocator that uses different patterns to avoid fragmentation can decrease memory usage by a substantial margin.

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

Until next time!

Subscribe to get these updates mailed to you.