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

推荐订阅源

C
Check Point Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
博客园_首页
博客园 - 【当耐特】
WordPress大学
WordPress大学
月光博客
月光博客
博客园 - 叶小钗
S
SegmentFault 最新的问题
雷峰网
雷峰网
H
Help Net Security
宝玉的分享
宝玉的分享
A
About on SuperTechFans
IT之家
IT之家
J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator 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
Deprecation, bugfixes and more!
David Heinemeier Hansson · 2024-02-02 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, February 2, 2024
Posted by Greg

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

Deprecate passing nil as model argument
Passing model: nil as an argument to the form_with method will be deprecated in the next release of Rails.

Skip CSS when creating APIs
This pull request makes the Rails generator skip the CSS part if the --api flag is set, because CSS is unnecessary for API only apps.

Commented out lines in .railsrc file should not be treated as arguments
Before this change, commented out lines in the .railsrc file were parsed as arguments if the commented part had any arguments inside. This pull request fixes that.

Add row_count field to sql.active_record notification
This pull request adds a row_count field to the sql.active_record notification, which returns the amount of rows returned by the query that emitted the notification.
This metric is useful in cases where one wants to detect queries with big result sets.

Allow encryption without compression
This pull request adds an option to ActiveRecord::Encryption::Encryptor to disable compression:

class User
  encrypts :name, encryptor: ActiveRecord::Encryption::Encryptor.new(compress: false)
end

You may want to avoid compression if your data is already compressed, or to prevent revealing information about the entropy of the encrypted value.

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

Until next time!

Subscribe to get these updates mailed to you.