Rails

Rails 8 Wants You to Own Your Stack

3 minute read

Rails 8 isn’t really a bag of new methods. Its headline is a stance: drop Redis, drop the PaaS, and run a real app from a single box you own — with the datab...

Practical Service Objects in Ruby

2 minute read

Service objects keep business logic out of fat controllers and models. A handful of conventions (one entry point, a consistent return value, a simple constru...

Full-Text Search in Rails with PostgreSQL

3 minute read

Before reaching for Elasticsearch, it’s worth knowing that PostgreSQL has capable full-text search built in. Here’s how to use it from a Rails app — tokenizi...

The Rails 7.1 Features I Actually Reach For

2 minute read

Rails 7.1 isn’t a headline release. It’s a pile of quality-of-life additions that quietly remove boilerplate you write all the time — normalizing attributes,...

Rails console tips

5 minute read

Knowing how to use the Rails console can be very useful when debugging or trying your snippets. Being proficient with it will increase your productivity.

Translating ActiveRecord data using JSON

4 minute read

Following the mass and using de-facto libraries isn’t always the best choice. Here are some thoughts about handling translation of data stored in database wh...