The ActionDispatch module of Rails gives you the helper method flash to access the flash messages in a response.
capybara-lockstep can help you with flaky end-to-end tests: This Ruby gem synchronizes Capybara commands with client-side...
ZSH is an alternative command line shell that includes some features like spelling correction, cd automation, better theme, and plugin...
By default parallel_tests will spawn as many test processes as you have CPUs. If you have issues with flaky...
CarrierWave comes with a set of default configuration options which make sense in most cases. However, you should review these...
The pages […] allow you to see different types of mixed content and test how they behave in your browser. The...
Sometimes you want to have a time in a given timezone independent from you Rails timezone settings / system timezone. I...
You can use git worktree to manage multiple working trees attached to the same repository. But why should I use...
bundle outdated [--filter-major|--filter-minor|--filter-patch] Example output for bundle outdated --filter-major Other examples
Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...
Rails supports alert and notice as default flash types. This allows you to use these keys as options in e.g...
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...
In long diffs, it can become impossible to spot small changes in larger blocks of moved code. This may be...
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...
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...
When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...
In Rubocop you might notice the cop Style/CaseEquality for e.g. this example: def foo(expected, actual) expected === actual end
Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...
We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...
While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...