If you have a :string or :text field, you should pair it with a model validation that restricts its length...

postgresql.org

TL;DR PostgreSQL handles Rails 4+ text and string columns the same. Some libraries may still reflect on the column...

In a web application you sometimes have tasks that can not be processed during a request but need to go...

tl;dr Don't forget require 'English' if you use a named global such as $LAST_MATCH_INFO. Otherwise this...

We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will...

In case you want to use pry with an older version of Ruby, you can try the following configurations.

Ruby and Rails have several methods for creating a new object that looks like another: clone, dup, deep_dup. When...

You can install rubygems 3.0.8 (released on February 18, 2020) to keep all the Gem::Specification#rubyforge_project deprecation warnings...

github.com

The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...

With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...

Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...

Sometimes it's nice to have some coloring in your logs for better readability. You can output your logs via...

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

PostgreSQL and ActiveRecord have a good support for storing dynamic attributes (hashes) in columns of type JSONB. But sometimes you...

medium.com

Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...

This checklist should help you to check edge cases that are not part of the default Carrierwave configuration.

If you want to make your Rails application be capable of sending SMTP emails, check out the action mailer configuration...

pganalyze.com

It's every developer's nightmare: SQL queries that get large and unwieldy. This can happen fairly quickly with the...

Im using the terminator terminal with the keyboard shortcut Control+Shift+E for splitting the terminal. I got used to...

Install the latest bundler version: gem install bundler Fetching bundler-2.3.5.gem Successfully installed bundler-2.3.5 1 gem installed Update the bundler...

There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...

Rubygems supports a 2FA for your account. Once enabled you need to provide your personal OTP code for every release...

This is a bookmarklet you can add to Chrome or Firefox which will allow you to create a story in...