Tutorials

Rails 7.1 Introduces ActiveRecord::Base::Normalization | Saeloun Blog
Using ActiveRecord::Base::Normalization we can specify unique normalization rules for model attributes. When an attribute is assigned or changed, normalization is applied, and the normalised value is stored in the database.To enable records to be ...


Experiment: Fully adding Sorbet and RBS to a small project
To get a better understanding of the value of gradual typing in Ruby projects I picked a small completely finished side project and did 3 experiments:Adding Sorbet at strict level to all files without metaprogramming.Adding RBS annotations to all ...



Skiff: Deploy your static sites with Kamal - YouTube
Skiff is a new, small tool for deploying static marketing sites using Kamal. Built on #NoBuild ideas, stone-age tools like Server Side Includes, and running with nginx. We use it to run http://once.com and http://37signals.com already. Enjoy! http...

Modularizing Rails Monoliths One Bite at a Time by Marc Reynolds - YouTube
Rocky Mountain Ruby 2023 - Modularizing Rails Monoliths One Bite at a Time by Marc ReynoldsAs Rails monoliths grow, coupling becomes increasingly difficult to manage. Many have reached for hope in microservices but instead found higher complexity....

How to skip all callbacks for all models in Rails
Use ActiveRecord::Suppressor, conditional callbacks, or patch ApplicationRecord to skip Rails callbacksTwo things:Skip callbacks if this is a debugging sessionDon't try to skip all callbacks in your business logic or production code. This is a str...

How We Upgraded to Ruby on Rails 7.1: A Smooth Transition | HackerNoon
Learn how to effortlessly upgrade your Rails project to version 7.1 with insights and tips. On October 5th, Rails 7.1 has been released. In this article, I will show you how I upgraded one of our projects, OneTribe (https://onetribe.team/), to the...