Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...
"Everything in Ruby is an object". This is also true for nested hashes and arrays. If you copy a hash...
A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...
When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...
Embedding videos on a website is very easy, add a tag to your source code and it just works...
Because colors improve readability so much. On Ubuntu 18.04 you can install it with sudo apt install grc
By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...
Code comments allow for adding human readable text right next to the code: notes for other developers, and for your...
Ruby's Net::HTTP library repeats a failing request once, as long as it deems it idempotent (GET, HEAD etc...
Heads up: transparent is not a real color, but black with 0% opacity. In transparent gradients, this adds some gray...
Sometimes it's nice to have some coloring in your logs for better readability. You can output your logs via...
To find an input with the type hidden, you need to specify the type hidden: find_field('Some label', type...
We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...
You can use the CSS property mask-image to define an "alpha channel" for an element. E.g. to let an...
TLS/SSL certificates are often used for HTTPS traffic. Occasionally a service may also use their TLS certificate to support public...
To set a default Node version for new shells, use nvm alias default : nvm alias default 1.2.3
Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...
Imagine you want to write a cucumber test for a user-to-user chat. To do this, you need the...
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...
Sometimes, you might have duplicate links on a page. Trying to click those links will by default cause Capybara to...
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...