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

推荐订阅源

The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
月光博客
月光博客
博客园 - Franky
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
有赞技术团队
有赞技术团队
V
V2EX
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
腾讯CDC
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
Martin Fowler
Martin Fowler
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
WordPress大学
WordPress大学
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
Microsoft Security Blog
Microsoft Security 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
Better error message, opt-in devcontainers and more!
David Heinemeier Hansson · 2024-05-24 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, May 24, 2024
Posted by Greg

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

Raise a descriptive error when a Store column is misconfigured
This pull request improves ActiveRecord::Store to raise a descriptive exception if the column is not either structured (e.g., PostgreSQL hstore/json, or MySQL json) or declared serializable via ActiveRecord.store. Previously, a NoMethodError would be raised when the accessor was read or written, but with this change, a descriptive ConfigurationError is raised.

Don’t enable automatically_invert_plural_associations by default
Because it can cause a lot of hard to detect issues, automatically_invert_plural_associations is turned off by default and you can opt-in if you want to give it a try.

Make devcontainers opt in and create a devcontainer command
This pull request has been created because dev containers will be an opt in feature in Rails 7.2. So, new apps will only get a devcontainer if you pass the --devcontainer flag to rails new. Additionally, you will be able to generate a devcontainer for an existing app with bin/rails devcontainer.

Make public method for schema_cache_ignored_table?
This pull request adds a public method for checking if a table is ignored by the schema cache.
Previously, an application would need to reimplement ignored_table? from the schema cache class to check if a table was set to be ignored. This change adds a public method to support this and updates the schema cache to use that directly.

ActiveRecord.schema_cache_ignored_table = ["developers"]
ActiveRecord.schema_cache_ignored_table?("developers")
=> true

Don’t configure Kamal storage volume if not needed
This pull request changes the app generator to only configure a Docker persistent storage volume in Kamal for sqlite or Active Storage. If using a different database and the --skip-active-storage option, configuration can be skipped.
In another pull request, the same change was done for the storage/ directory.

Add rubocop and GitHub Actions to plugin generator
This pull request adds Rubocop and GitHub Actions to the plugin generator to make it similar to the app generator. This can be skipped using --skip-rubocop and --skip-ci.

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

Until next time!

Subscribe to get these updates mailed to you.