On Rails — Marco Roth: Teaching Rails to Read Its Own Template
Rails Foundation · 2026年11月13日
AI 摘要 AI 生成,可能有误
Herb 和 ReActionView 的创作者 Marco Roth 做客 On Rails 播客,讲解 Herb 如何将 HTML 与 ERB 一起解析,从而在存在问题的视图进入生产环境之前将其捕获;Herb 即将成为 Rails 8.2 的一部分。这次对话还谈到了 ReActionView 如何无需重写就能让 Rails 视图具备响应式能力、RubyEvents.org 背后的故事,以及在 AI 智能体编写模板的时代,这类工具为何变得更加重要。
Marco Roth, independent consultant and the creator of Herb and ReActionView, joins Robby to talk about teaching Rails to understand its own templates.
Marco explains how Herb parses HTML and ERB together, why that lets it catch broken views long before they reach production, and how it is set to become part of Rails 8.2. They also get into how ReActionView makes Rails views reactive without rewriting them, the story behind RubyEvents.org, and why tooling like Herb matters even more when AI agents are writing your templates.
AI 摘要This week's Rails update introduces a new bin/rails credentials:keys command to list credential keys without exposing secrets, bulk loading of Action Text attachables to eliminate per-attachment queries, and the ability for Action Mailer to boot without Active Job. Other notable changes include NOT ENFORCED check constraint support for PostgreSQL 18+, thread-isolation fixes for ActionController::Live streams, and numerous bug fixes across truncation, Accept header parsing, and SQLite's raised minimum version of 3.37.0. The release closed out with contributions from 48 developers to the Rails codebase.
AI 摘要This week's Rails codebase changes focus heavily on security, featuring a rewritten 'Securing Rails' guide, a Rack patch blocking arbitrary encodings in multipart form data, hardened generated GitHub Actions workflows, and a new default ensuring association scopes keep owner conditions. Other notable changes include dropping support for the Active Record 6.1 marshal format, supporting Ruby Set objects in class attributes and token lists, decoupling Action Mailer from Active Job, and various performance improvements and bug fixes such as a 100x speedup for String#truncate_words. The week saw 34 contributors, and four new AI model versions were added to the Agents on Rails benchmark.
AI 摘要This is Wojtek's weekly Rails development update, highlighting a new guide for using Hotwire with Rails along with numerous bug fixes across Active Record, Active Job, Active Support, and other Rails components. Key fixes include deprecating unqualified unscope(where:) calls, filtering sensitive parameters from error logs, preventing silent truncation of 64-bit integers, correcting DST gap time shifts, and no longer exposing encryption keys in inspect output. The week saw contributions from 41 developers to the Rails codebase.
AI 摘要This edition of 'This Week in Rails' announces the release of Rails 8.0.5.2 and 8.1.4.1, security updates addressing 21 security issues. The issue also highlights a busy week of bug fixes across the framework, including corrections to Active Record features like merging relations, default ordering, inheritance of parent-class attributes and associations, and preloading through associations, as well as fixes in caching, URL generation, and message encryption.
AI 摘要Rails versions 8.0.5.2 and 8.1.4.1 have been released as security updates addressing 21 security issues, including arbitrary file read/write and remote code execution in Active Storage, XSS vulnerabilities in Action View, DoS vulnerabilities, session handling issues, and IP spoofing. The Rails team strongly recommends upgrading as soon as possible, noting that older versions are unsupported and security support for the 8.0 series ends on November 7, 2026. SHA-256 hashes for the released gems are also provided so users can verify the integrity of their downloads.