Blog

Rails

108 posts tagged rails — the same founder-tested patterns, filtered.

Avoid data migrations in the schema migrations for Rails

Avoid data migrations in the schema migrations for Rails

Could you re-run all migrations in the project? How often were you required to fix them while production was under fire?
5 Steps to Add Remote Modals to Your Rails App

5 Steps to Add Remote Modals to Your Rails App

Sometimes you don’t want to write big JavaScript application just to have working remote modals in your rails application.
New in Ruby on Rails 7.2: Development Containers Configuration

New in Ruby on Rails 7.2: Development Containers Configuration

Development container is a full-featured coding environment.
Tips for writing readable system tests in Rails

Tips for writing readable system tests in Rails

The Four-Phase Test pattern applied to Rails system tests, and how keeping those phases visible keeps a Capybara spec readable months later.
How to handle remote services in tests

How to handle remote services in tests

Do you have difficulties in adding the new tests and their readability decreased due to mocks and stubs?
Where to read ENV variables in Ruby on Rails application

Where to read ENV variables in Ruby on Rails application

What if the project has too many dependencies from the environment variables?
Regular automatic dependencies update with CircleCI

Regular automatic dependencies update with CircleCI

Resolving the auto-upgrade issue will allow having edge gems versions with little to no effort. How could you achieve this with CI (specifically CircleCI)?
How to avoid N+1 query using SQL views (materialized) in Rails application

How to avoid N+1 query using SQL views (materialized) in Rails application

In the first part, we considered the solution with extracting logic to the separate class and implementing the Facade pattern.
Placeholder Image

Enum validation in Ruby on Rails 7.1

The latest version of Rails 7.1 introduces the ability to validate enums, enhancing data integrity and error handling in Rails models.
Design Rails JSON API with performance in mind

Design Rails JSON API with performance in mind

Caching can reduce load time and increase the throughput of your API endpoints without in-depth optimization.

Reading this because something is going wrong?

A free code audit gives you a written assessment of your codebase in plain English.

Get a Free Code Audit

Rated 4.8/5 on Clutch · you keep the write-up either way