A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...
If your project depends on an old version of ImageMagick that you can no longer install in your system, you...
The linked article provides a good overview of the various concurrency primitives in Ruby, and what's changing in Ruby...
When you repeat a subpattern with a *, + or {...} operator, you may choose between greedy, lazy and possessive modes. Switching modes...
Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
Consider the following models and form models: class Parent < ApplicationRecord has_many :children, class_name: 'Child', foreign_key: 'parent_id...
Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...
I just ran into this deployment error after switching from the asset pipeline to webpack: 01:05 deploy:assets:precompile...
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...
In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...
In Ruby you can communicate between processes with sockets. This might be helpful in tests that validate parallel executions or...
The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...
The ExceptionNotification has plugins that talk to external APIs rather then just sends emails, like microsoft teams or slack. You...
Ruby offers monkey patching methods in order to change the behavior of a library if there's no better way...
URLs can transport key/value pairs ("parameters") using this syntax: /path?foo=bar If the value is blank, mind these subtle...
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...
Headless Chrome is a way to run the Chrome browser without a visible window. Configuring Capybara Configure the Capybara driver...
SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...
Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...
When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...
IRB 1.2 (shipped with Ruby 2.7, but works on 2.5+) brings pretty syntax highlighting and multiline cursor navigation. However, pasting...
This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...