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...
Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...
Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...
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...
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...
When tests might not run with skipping RSpec in the RSpec.describe failing with the error undefined method 'describe' for main...
A primer on vector graphics For rastered image formats like JPG or PNG, each pixel is basically drawn on a...
There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...
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...
Unicorn allows you to specify the maximum number of workers. In development this could be useful if you use a...
There was an issue with makandra_sidekiq < 0.2 concerning the stopping of Sidekiq. Sidekiq < 6 has two finishing timeouts: one...
Most of the time it is a tedious task to apply a code style guide to an existing code...
When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...
This repository is a community-curated list of flexbox issues and cross-browser workarounds for them. The goal is that...
The main benefit of our convention to prefix commits by their corresponding Pivotal Tracker ID is that we can easily...
When a user shares your content, a snippet with title, image, link and description appears in her timeline. By default...
You can share a state in Ruby with global variables. Even if you should avoid them whenever possible, for debugging...
webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...
From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...