Tutorials



Let's make a blog with Bridgetown | Hanami Mastery
Today I'm going to show you the Bridgetown, a progressive-site generator written in Ruby. Even though I'm not using it just yet, I'm going to be a heavy user relatively soon and therefore I wanted to do some digging into this topic for you.It's wr...

Rails 7.1 adds ActiveRecord::Base::normalizes - BigBinary Blog
Rails 7.1 has introduced a new method in Active Record that can be used to declare normalizations for attribute values. This can be especially useful for sanitizing user input, ensuring consistent formatting, or cleaning up data from external sour...

Five Easy to Miss Performance Fixes for Rails Apps
Improving the performance of a Rails application can be a challenging and time-consuming task. However, there are some config tweaks that are often overlooked but can make a significant difference in response times. In this tutorial, I will focus ...


Algorithms: Two Point Method with Ruby - DEV Community
The Two Point method is a commonly used approach for solving problems in computer science and algorithms. This method involves the use of two pointers, typically referred to as left and right pointers, which are initially positioned at opposite en...

From Theory to Practice: Using Active Storage for File Management in Rails - DEV Community
This is the part B of my Ultimate Guide to Active Storage in Rails series where I aim to teach you all that is required to know about Active Storage. In this part of the series, I aim to walk you through the technical setup of Active Storage and h...

Rails Self-Referential Relationships - DEV Community
In a self-referential relationship a class can interact with itself using a join table. While brainstorming some ideas for my new Rails project I found the topic of self-referential has_many, throughrelationships. After reading about it I decided ...

Sending Better Data With Rails Serializers - DEV Community
Using Ruby on Rails as an API is awesome because of its render :json method. The only problem is that many times the JSON data may contain many unnecessary things. We want more options to customize the data and we can do that using serializers. We...