Consider the following models and form models: class Parent < ApplicationRecord has_many :children, class_name: 'Child', foreign_key: 'parent_id...
When running an older version of docker-compose you might see the following error: ERROR: Version in "./docker-compose.yml" is unsupported...
Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...
PostgreSQL has partial indexes. With a partial index you tell Postgres to only index rows matching a given query.
There are several tools for DNS debugging which offer you more or less information. Most of the time the more...
Rails supports alert and notice as default flash types. This allows you to use these keys as options in e.g...
I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...
The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...
TinyMCE is a WYSIWYG editor which is quite customizable. Add a custom button to the tinyMCE toolbar and tell tinyMCE...
When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...
Ruby's String#split returns an array of substrings from the given string. Usually, this is missing the split characters...
SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...
This is an informational site about video and how it works. We started by talking about Playback, next we added...
Liquid Prompt gives you a nicely displayed prompt with useful information when you need it. It shows you what you...
While both the alt attribute and the figcaption element provide a way to describe images, the way we write for...
Why improve your code reviews? Improving code review technique helps your reviewer, your team, and, most importantly: you.
IRB 1.2 (shipped with Ruby 2.7, but works on 2.5+) brings pretty syntax highlighting and multiline cursor navigation. However, pasting...
Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...
You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...
curl-to-ruby is a handy tool that converts your curl command to ruby code that uses the Net::HTTP...
Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...
Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...
Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...
While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...