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

推荐订阅源

博客园 - 叶小钗
V
Visual Studio Blog
雷峰网
雷峰网
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
C
Check Point Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
D
Docker
IT之家
IT之家
博客园 - 聂微东
腾讯CDC
U
Unit 42
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog

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 World talks online, fix of a 13 years old bug and m...
David Heinemeier Hansson · 2023-10-20 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, October 20, 2023
Posted by Greg Molnar

Hi, it’s Greg, bringing you this week’s changes in the Rails codebase.

Rails World talks are online
The talks from Rails World 2023 are now available to watch online! You can watch all of them on the YouTube playlist.
Also, Amanda Perino wrote a recap of Rails World.

Do not memoize auto/eager load paths in engines
This pull request fixes an issue from 13 years ago. In a Rails engine, if you manipulate the auto/eager load paths like this:

config.eager_load_paths << "#{Rails.root}/extras"
config.paths["app/helpers"] << "#{Rails.root}/custom/helpers"

Then custom/helpers would not end up in the autoload and eager load paths. In newly generated Rails 7.1 applications lib is pushed to to config.eager_load_paths. If they are used together with something that edits config.paths afterwards, that latent bug now surfaces. I guess this combination, while possible, was not happening much in practice until now.

Raise on foreign_key: being passed as an array in associations
Associations have never allowed nor supported foreign_key option being passed as an Array. This still holds true for Rails 7.1. However, with support for composite primary keys it may become more common for applications to mistakenly pass an array to foreign_key:. With this commit, an exception is raised when foreign_key: is passed as an array.

Fix capture view helper for HAML and Slim
When a blank string is captured in HAML or Slim (and possibly other template engines) it returns an entire buffer. This pull request fixes that.

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

Until next time!

Subscribe to get these updates mailed to you.