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

推荐订阅源

D
Docker
U
Unit 42
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
L
LangChain Blog
Engineering at Meta
Engineering at Meta
量子位
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
A
About on SuperTechFans
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
A week dedicated to composite primary keys 😎
David Heinemeier Hansson · 2023-04-14 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, April 14, 2023
Posted by Emmanuel Hayford

Saluton! That’s Esperanto for “Hello!” 😜… Emmanuel Hayford here, let’s see what’s new in Rails as we gear up for Composite Primary Keys (CPKs) support.

But first, here’s a fine opportunity for junior Ruby on Rails developers: As part of preparations for the upcoming Rails World conference in Amsterdam, Netherlands this year, The Rails Foundation is presenting an opportunity to junior Ruby on Rails developers. Paired with a mentor, the goal is for the junior developer to build a website to host the event!

Support deleting records from associations for CPK This PR improves the behaviour around deleting records from associations in composite contexts. Previously, an ArgumentError would raise if one attempted to delete records from associations in composite contexts.

Ensure that ids_writer and ids_reader are working for CPK The latest update to ids_writer addresses an issue with handling composite primary keys. Previously, the writer was able to handle a CPK model associated with a non-CPK model without any errors. However, when it came to a CPK model associated with another CPK model, the writer produced incorrect IDs. This PR fixes the issue.

Support batching using composite primary keys Batching was previously limited to tables with simple primary keys, but it can now be used with tables that have composite primary keys.

Rewrite Asset Pipeline guide for Rails 7 This PR was created to update the asset pipeline guide, which had become outdated in several ways. It didn’t mention some important updates, such as the importmaps-rails gem that is now the default solution for JavaScript.

This update is one that’s long due.

The guide on Sprockets was also outdated as it was written before Sprockets 4.0, which introduced the manifest.js file, and some of its parts were no longer relevant. Furthermore, the guide failed to mention several useful gems, including jsbundling-rails , cssbundling-rails , dartsass-rails , and tailwindcss-rails.

This PR aims to bring the guide up-to-date with the latest changes in Rails and highlight the best practices for managing assets.

We had  29 contributors in the last seven days.

See you next week!

Your weekly inside scoop of interesting commits, pull requests and more from Rails.

Subscribe to get these updates mailed to you.