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

推荐订阅源

V
Visual Studio Blog
Y
Y Combinator Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
IT之家
IT之家
量子位
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
罗磊的独立博客
S
SegmentFault 最新的问题
博客园_首页
N
Netflix TechBlog - Medium
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
M
MIT News - Artificial intelligence
A
About on SuperTechFans
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
MyScale Blog
MyScale 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
A new release, Action Mailer preview empty states, bugfix...
David Heinemeier Hansson · 2023-08-11 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, August 11, 2023
Posted by gregmolnar

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

Introducing the Rails Luminary Awards: Nominations Now Open
Starting at Rails World in October, the Rails Foundation will establish a new tradition of celebrating Rails Luminaries- people who’ve contributed to the Rails ecosystem and community with exceptional code, documentation, enthusiasm, or assistance, thereby helping others do more, learn more, or be inspired.
You can submit your 2023 Rails Luminary nomination here.

Rails 7.0.7 has been released
There is a new minor release for Rails 7 with minor fixes and improvements.

Removes Webpacker from the guides index page
As a follow-up to the deprecation of Webpacker, it is removed from the Rails Guides in this pull request.

Action Mailer Preview empty states
When an application defines mailers without any corresponding previews, requests to GET /rails/mailers return a page with a blank <body> element.
Similarly, when an ActionMailer::Preview subclass is defined, but doesn’t declare any actions, the response contains a mostly empty page.
This pull request renders empty-state messaging for both scenarios, and links to the Action Mailer Basics guides.

Fix NoMethodError when request Content-Type is blank.
This pull request changes the mime type lookup to use the safe navigation operator on the call to rstrip to handle the case when a client makes a request with a blank Content-Type header.

Adds Arel::FactoryMethods#cast(node, type)
CAST(field as type) is a widely supported SQL function. This pull request adds native Arel support for this named function with a cast(field, type) helper. Example of usage:

Product.arel_table.cast(product_table[:position], "integer")
# produces: CAST("products"."position" as integer)

Rename fixture_file_upload method to file_fixture_upload
This pull request renames the fixture_file_upload method to file_fixture_upload to match the order of words in file_fixture and file_fixture_path.
To preserve backward compatibility, it declares a fixture_file_upload alias to be preserved into the future.

Active Storage mirror uploads should be asynchronous
When you define a Mirror service in storage.yml , the upload to the mirror actually happens inline, instead of using ActiveStorage::MirrorJob.
This slows down any uploads to the service, because it is performed n times (n being the number of mirrors), inline, instead of using the ActiveStorage::MirrorJob.
This pull request changes this behavior to only upload the file to the primary service synchronously and then enqueue a job to upload the file to the mirrors asynchronously.

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.