Blog

Rails

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

Custom templates for Rails scaffolding

Custom templates for Rails scaffolding

Rails has a very handy tool for rapid development called scaffolding. Often programmers ignore it, because some things have to be written by hand anyway.
How to avoid callbacks using services.

How to avoid callbacks using services.

Often, programmers abuse callbacks, not fully understanding that their code will ultimately be confusing and non-obvious.
Data migrations with Rails

Data migrations with Rails

Data migration is a common part of working with databases, and Ruby on Rails developers have many tools at their disposal.
How to use Ruby on Rails Concerns

How to use Ruby on Rails Concerns

A Rails concern is a module that extends the ActiveSupport::Concern module.
What is the difference between joins and includes in Rails ActiveRecord?

What is the difference between joins and includes in Rails ActiveRecord?

The main difference is that when using includes the eager loading is used.
Preview UI changes with Ruby on Rails variants

Preview UI changes with Ruby on Rails variants

Here's one of the simplest ways to do it without introducing complex feature switching mechanisms.
How to get & build full URLs in Rails

How to get & build full URLs in Rails

There are some cases when you want to get a current request absolute URL.
How to use a Transaction Script(aka Service Objects) in Ruby on Rails. Simple example

How to use a Transaction Script(aka Service Objects) in Ruby on Rails. Simple example

The logic of small applications can be present as a series of transactions.

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