Tutorials

Understanding Transaction Isolation Levels in Rails with Simple Examples - DEV Community
In this article, we will discuss the usage of database transactions in a Rails application, with a particular focus on one of the ACID principles - Isolation - and its four levels. We will explore what these isolation levels are, why they are nece...

How to Dynamically Create Instance Variables in Ruby
This post shows one way to dynamically initialize multiple instance variables in a Ruby class using metaprogramming. If you need to pass multiple, separate pieces of data to a constructor (and cannot refactor the code for some reason), it's a pret...



Rails 7.1 adds routes --unused option to detect extraneous routes | Shakacode
Discover extraneous routes in your Rails application effortlessly by utilizing the --unused option with the rails routes command.Rails routes are essential for mapping URLs to specific actions, controllers, and views in your application. As your R...



Safeguarding From Deprecation Regressions During an Upgrade
You are upgrading a Rails application. You finished fixing a deprecation warning and it’s not present anymore. You continue working on other tasks and one day you find out the deprecation is back in the codebase. New code was added using the depre...
