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

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
博客园_首页
量子位
T
Tailwind CSS Blog
博客园 - Franky
G
Google Developers Blog
D
DataBreaches.Net
Vercel News
Vercel News
B
Blog
Recent Announcements
Recent Announcements
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
爱范儿
爱范儿
博客园 - 【当耐特】
The Cloudflare Blog
H
Help Net Security
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
C
Check Point Blog
有赞技术团队
有赞技术团队
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
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
Ignoring indexes in MySQL has never been so easy...
David Heinemeier Hansson · 2025-02-28 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, February 28, 2025
Posted by zzak

Hey, zzak here. Last week was a short one, so we took the week off, let’s catch up.

Heads up: the Rails World CFP will open on March 11th.
The 2025 landing page is currently being built, but if you are going to submit a talk, keep an eye on: rubyonrails.org/world/

Add Podman instructions for devcontainers
This is not necessarily a change to Rails itself, but worth noting that you don’t have to rely on Docker to use devcontainers and we actually use Podman to test the rails new flow in CI as well.

Add login_as(user) testing helper when generating authentication
When using the Authentication generator, you now get sign_in_as(user) and sign_out test helper methods.

Introduce “ActiveSupport::ErrorReport#add_middleware”
This PR introduces the concept of a middleware stack to the ErrorReporter. Middleware are used to add or mutate the context which the error being reported occurs, and can be added using add_middleware.

Add “report” option to “ActiveJob::Base#retry_on” and “#discard_on”
When using Active Job you can now specify to report errors to ErrorReporter when retrying or discarding jobs occurs.

Support disabling indexes for MySQL v8+ and MariaDB v10.6+
This PR takes advantage of “invisible” or “ignored” indexes in newer versions of MySQL and MariaDB, which can be managed using migrations.
See the MySQL or MariaDB docs for more.

Add column types to “ActiveRecord::Result” for SQLite3
When using the SQLite3 adapter you can now get the column type information from a query using column_types.

Raise “ActiveRecord::ReadOnlyError” when pessimistically locking with a readonly role
This PR ensures that calling lock! when current_preventing_writes is enabled will raise an error to improve the usability in this scenario.

Ensure “reverse_order” respects “implicit_order_column”
This PR makes sure that reverse_order takes into account the model implicit_order_column when reversing the order.

Add SafeBuffer to the list of messagepack serializable type
When using MessagePack to serialize cookies, this PR fixes an issue when trying to persist SafeBuffer type objects in a cookie.

Fix “LocalStore#read_multi_entries” to distinguish recorded misses
This PR addresses a bug when using LocalStore cache where a read or exists? check for a key would inadvertently result in consecutive fetch_multi calls return nil for the value.

Add Timezone America/Asuncion
They stopped observing DST last year, and a new IANA timezone was added.

Add “prepend” method to “MessageEncryptors” and “MessageVerifiers”
This adds a #prepend method to ActiveSupport::MessageEncryptors and ActiveSupport::MessageVerifiers.
This method behaves like #rotate, but it prepends to the list instead of appends. Thus it can be used to override the way messages are generated for preconfigured instances such as Rails.application.message_verifiers.

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

Until next time!

Subscribe to get these updates mailed to you.