This Week in Rails

November 26, 2021

Composable blobs, improved upsert and much more!

Hey, Wojtek here with recent additions to Rails. All of them today for FREE, for you. Thank you all the contributors for making Rails. Those from one-time to day by day committers. Add compose method to Active Storage Blob Concatenating multiple blobs is now possible. Support custom metadata on Active Storage Setting custom metadata on...
Read more

November 20, 2021

Automated shard swapping middleware, standardised error reporting interface and more!

Hey, this is Greg, bringing you the latest news about Ruby on Rails. Support <form> elements without [action] By default, when a form is declared without an action attribute, browsers will encode the form's fields into the current URL. Prior to this commit, none of the form construction variations supported declaring a form without an ...
Read more

November 7, 2021

Nested attributes for delegated types, improved performances and more!

Hey! Robin here with the latest news from the Ruby on Rails world. Support accepts_nested_attributes_for for delegated types Rails 6.1 introduced delegated types to ease handling some polymorphic relationships. This pull request makes using `accepts_nested_attributes_for` on such types a piece of cake. Use nested queries doing UPDATE w...
Read more

October 31, 2021

🎃 Halloween Edition: Zeitwerk migration guide, selenium-webdriver, and some Ruby 3.1 snacks

🍭 Trick or treat, zzak here after a week off with lots of goodies! 🍬 Rails Autoloader Migration Guide: From Classic to Zeitwerk This new guide has all you need to know to switch the autoloader for Rails 6.x and 7.0 applications! Add ActiveRecord::Base.prohibit_shard_swapping This new method prohibits swapping shards within the given bl...
Read more

October 15, 2021

Auto timestamps on bulk inserts, HTML safe translations in controllers and more

Hey, Wojtek here with last week updates from the Ruby on Rails world. Set timestamps on insert_all/upsert_all record creation The timestamps will be automatically set when using bulk insert/upsert. This behaviour can be disabled by the record_timestamps config on the model class. Treat html suffix in controller translation When transla...
Read more

October 10, 2021

Automatic inverse_of, performance improvements and more!

Hi, this is Greg, bringing you the latest news about Ruby on Rails! This week we switched our newsletter delivery platform to HEY, if you are reading this email, you already confirmed your subscription and there is no other action needed on your end. Avoid instance_exec for controller callbacks This change brings some performance impro...
Read more

October 10, 2021

Autumn is here, and so is Rails 7 Alpha 2! 🍂

Hey! Zzak here with a JAM-PACKED edition of This Week In Rails. 🍇 Server Timing Middlware for Development This PR started nearly 2 and a half years ago, finally made its way into Rails! A really neat feature, uses the Server-Timing header to emit durations for all ActiveSupport::Notifications. You can then view these metrics in your br...
Read more