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

推荐订阅源

F
Fortinet All Blogs
Recent Announcements
Recent Announcements
H
Help Net Security
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
小众软件
小众软件
Last Week in AI
Last Week in AI
U
Unit 42
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
云风的 BLOG
云风的 BLOG
V
V2EX
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
爱范儿
爱范儿

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
Deferred routes drawing, connect route helper and more
David Heinemeier Hansson · 2024-08-16 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, August 16, 2024
Posted by Wojtek

Hi, Wojtek from this side. Let’s explore this week’s changes in the Rails codebase.

Defer route drawing
This change triggers the initial reload of routes either through middleware or when a url_helpers method is used. Previously, this was executed unconditionally on boot, which could slow down boot time unnecessarily for larger apps with lots of routes. Environments like production that have config.eager_load = true will continue to eagerly load routes on boot.

Add connect route helper
Defines a route that recognizes HTTP CONNECT (and GET) requests. More specifically this recognizes HTTP/1 protocol upgrade requests and HTTP/2 CONNECT requests with the protocol pseudo header.

Bulk insert fixtures on SQLite
Previously one insert command was executed for each fixture, now they are aggregated in a single bulk insert command.

Update PostgreSQL adapter extensions to include schema name
The schema dumper will now include the schema name in generated enable_extension statements if they differ from the current schema.

Add escape_html_entities option to JSON encoder
This allows for overriding the global configuration found at ActiveSupport.escape_html_entities_in_json for specific calls to to_json. This can be used from controllers in the following manner:

class MyController < ApplicationController
  def index
    render json: { hello: "world" }, escape_html_entities: false
  end
end

Remove racc gem dependency
ActionDispatch::Journey::Parser does not need to be generated by racc. This will open the possibility to optimize it in the future.

Support minitest 5.25+
Minitest 5.25 changed the signature of one of the internal methods that was used by Rails.

Enable query log tags by default on development env
This can be used to trace troublesome SQL statements back to the application code that generated these statements. It is also useful when using multiple databases because the query logs can identify which database is being used.

Fix returning type from encrypted attribute
Previously it always returned :text type.

Raise when using key which can’t respond to #to_sym in encrypted configuration
As is the case when trying to use an Integer or Float as a key, which is unsupported.

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

Until next time!

Subscribe to get these updates mailed to you.