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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
L
LangChain Blog
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
V
V2EX

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
Rendering Markdown is real, plus new database connection ...
David Heinemeier Hansson · 2025-09-05 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, September 5, 2025
Posted by zzak

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

Rails 8.1 Beta 1 lands
The first beta release was cut for Rails 8.1, see the post for full details.

Rails World 2025 Opening Keynote
Part of the newsletter team is enjoying Rails World in Amsterdam, say hi to them if you attend. If you (like me) couldn’t go, the first keynote is already up!

Introduce new database configuration options for managing connection pools
This PR adds keepalive, max_age, and min_connections – and renames pool to max_connections to match. There are no changes to default behavior, but these allow for more specific control over pool behavior.

Move “LIMIT” validation from query generation to when “limit()” is called.
While part of Arel’s private API, the removal of sanitize_limit is possibly worth noting here.

Add markdown mime type and renderer
Add .md/.markdown as Markdown extensions and add a default markdown: renderer:

class Page
  def to_markdown
    body
  end
end

class PagesController < ActionController::Base
  def show
    @page = Page.find(params[:id])

    respond_to do |format|
      format.html
      format.md { render markdown: @page }
    end
  end
end

Action Controller now raises “TooManyRequests” error from rate limiting
Requests that exceed the rate limit now raise an ActionController::TooManyRequests error. Previously this would call head :too_many_requests, but now you can use rescue_from to handle these in your app.

Deprecate built-in Sidekiq adapter
Since the Sidekiq adapter was successfully merged upstream we no longer need to maintain it internally in Rails. If you’re using this adapter, upgrade to sidekiq 7.3.3 or later to use the sidekiq gem’s adapter.

Optimize Active Job argument serialization by ~5x
An interesting change for sure, this may impact users with a custom serializer, and maybe not set in stone.

Add namespace setter and getter to Active Support’s Cache Store
In development or after initialization a user may want to inspect the current cache namespace. They may also wish to change it. This PR adds this functionality.

Add “parallel_worker_id” helper for running parallel tests
This allows users to know which worker they are currently running in, via ActiveSupport::TestCase.parallel_worker_id.

Enable debug mode for Event Reporter in local environments
Rails will now emit debug events by default in development, and test so calls to Rails.event.debug should be visible.

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

Until next time!

Subscribe to get these updates mailed to you.