Embedding videos on a website is very easy, add a tag to your source code and it just works...
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...
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.
When you have two inputs, where one contains the name of the other (eg. Name and Name with special treatment...
Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...
Bundler 2 introduced various incompatibilites und confusing behavior. To add to the confusion, Bundler's behavior changed after the release...
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...
Rubygems supports a 2FA for your account. Once enabled you need to provide your personal OTP code for every release...
ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To freeze the current time, use...
The Ruby standard lib ships with a YAML Parser called Psych. But serializing and deserializing data seems not as obvious...
There is a practical short list for valid/invalid example email addresses - Thanks to Florian L.! The definition for valid emails...
WProofreader is a spelling and grammar checking tool that integrates with textareas and numerous WYSIWYG editors. While it usually activates...
Most of the time it is a tedious task to apply a code style guide to an existing code...
As an application exists, data accumulates. While you'll be loosely monitoring the main models' record count, some supportive database...
I got this error after upgrading Ruby from 2.4.5 to 2.6.4 when I opened the Rails console - rails server still...
When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...
With this gem your transaction blocks raise an error when they have side effects that cannot be rolled back.
The ruby sass gem also installs a command line tool to convert to and from SCSS. Use it for a...
There are several ways to merge two (or more) PDF files to a single file using the Linux command line...
Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...
When upgrading Clearance, pay attention whether the password hashing strategy might have changed. Old clearance versions (< 1.0) used SHA1-encrypted...
You can share a state in Ruby with global variables. Even if you should avoid them whenever possible, for debugging...