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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
Last Week in AI
Last Week in AI
The Cloudflare Blog
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
S
SegmentFault 最新的问题
量子位
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
InfoQ
人人都是产品经理
人人都是产品经理
G
Google Developers Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Engineering at Meta
Engineering at Meta

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
The Rails Foundation, Stimulus Outlets API, bug fixes and...
David Heinemeier Hansson · 2022-11-19 · via Ruby on Rails: Compress the complexity of modern web apps

Saturday, November 19, 2022
Posted by Emmanuel Hayford

Boa noite! This is Emmanuel, bearer of good tidings.

Introducing: The Rails Foundation In case you missed it, with eight founding members, Rails has started The Rails Foundation! Together, the founding members have contributed a total sum of $1,000,000 that will aid the foundation’s mission to improve the documentation, education, marketing, and events in our ecosystem. More here.

Raise on assignment to readonly attributes Attributes that are marked as attr_readonly would previously fail silently, meaning data won’t be written to the database when you tried to assign new values—with this PR, read-only attributes will raise an ActiveRecord::ReadonlyAttributeError when an attempt is made to write to that read-only attribute.

Allow unscoping of preload and eager_load associations This PR adds the ability to unscope preloaded and eager loaded associations, adding to the list of valid “unscoping” values like where, select among others.

Add filtering of encrypted attributes in #inspect Previously, encrypted attributes could be added to an application’s filter_parameters which would filter the attribute values from logs. This commit adds an additional config to enable adding encrypted attributes to records’ filter_attributes, which allows them to be filtered when models are inspected (such as in the console).

Initialize encrypted attributes when using #first_or_create or #first_or_initialize This fixes a bug where one would expect that encrypted values are initialized with the values provided but instead, the encrypted values were nil.

Stimulus gets an Outlets API Around Hotwire, this PR received a warm welcome. I reached out to the author, Marco Roth,  who whipped out a documentation that perfectly summarises the Outlet API:

The Outlets API lets you reference Stimulus Controller instances and their controller element from within another Stimulus Controller by using CSS selectors. The use of Outlets helps with cross-controller communication and coordination as an alternative to dispatching custom events on controller elements.

Ruby on Rails saw 22 generous contributors in the last 7 days.

Talk to you next week.

Subscribe to get these updates mailed to you.