Blog

Rails

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

Collecting JavaScript code coverage with Capybara in Ruby on Rails application

Collecting JavaScript code coverage with Capybara in Ruby on Rails application

We want to be sure that all code responsible for key user journey scenarios of our app is covered with tests.
5 Rails Virtual Attribute Use Cases - Skip the Column

5 Rails Virtual Attribute Use Cases - Skip the Column

Use Rails virtual attributes to handle data without adding a database column. Five practical patterns for formatting, confirmation fields, and more.
New asserts for testing stopped streams after Ruby on Rails 7.1.

New asserts for testing stopped streams after Ruby on Rails 7.1.

Previously, developers encountered a significant challenge verifying if streams ceased operation correctly.
More control over enum in Rails 7.1

More control over enum in Rails 7.1

ActiveRecord::Enum in Rails have long been a convenient tool for representing a set of symbolic values within a model.
Upgrading PostgreSQL on Heroku: A Step-by-Step Guide

Upgrading PostgreSQL on Heroku: A Step-by-Step Guide

Are you looking to upgrade your PostgreSQL database on Heroku?
Custom ordering without custom SQL with Ruby on Rails 7

Custom ordering without custom SQL with Ruby on Rails 7

Ordering records by an enum in Rails 7 without hand-written SQL: in_order_of puts the rows in the sequence you name.
Placeholder Image

How to Configure SimpleCov in Rails

A working SimpleCov config for Rails, line by line: what each setting does, which filters actually matter, and why your coverage number moves when you add one.
Integrating Bun with Vite Ruby for Lightning-Fast Frontend Builds

Integrating Bun with Vite Ruby for Lightning-Fast Frontend Builds

Here is the effortless process of enabling _Bun_ for Vite Ruby, ultimately streamlining your front-end builds.
Ruby on Rails Views Resources for Frontend Developer

Ruby on Rails Views Resources for Frontend Developer

Resources for front-end developers landing in a Rails codebase: ViewComponent, Phlex and the other view-layer options worth knowing about.
How to keep clean Ruby on Rails views with the Null Object pattern

How to keep clean Ruby on Rails views with the Null Object pattern

One of the most common errors developers encounter is NoMethodError. It occurs when code is executed according to a script not provided by the programmer.

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