Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...
You'll need openssl-3 or newer for servers running 22.04 Ruby version 3.1 uses by default the gem openssl...
Redis.current will be removed without replacement in redis-rb 5.0. Version 4.6.0 adds deprecation warnings for Redis.current and Redis.current=: `Redis.current...
This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...
We use foreman to start all necessary processes for an application, which are declared in a Procfile. This is very...
Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...
You want to deploy new features but the latest commits are not ready for production? Then use git merge master...
Sometimes you need to access a dev server running on localhost from another machine that is not part of the...
In my case [...] the catalog is an XML that contains all kinds of possible products, categories and vendors and it...
TL;DR When using Cache-Control on a Rails application, make sure the Vary: Accept header is set.
I sometimes had the issue that I received an error when starting an existing vagrant box with vagrant up:
Similar to the Webpack Bundle Analyzer, Chrome's new Lighthouse feature … … shows a visualisation of your JavaScript bundles. It's...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...
You want to use fields in your applications. However, your desktop users may encounter some weird quirks: Aside from allowing...
Rails has the handy controller method send_file which lets us download files easily. We can decide whether the file...
We had a card that described how to install multiple mysql versions using mysql-sandbox. Nowadays with the wide adoption...
Formerly 301 (Moved Permanently) and 302 (Found) were used for redirecting. Browsers did implement them in different ways, so since...
After switching a project from Sprockets to Webpack, I started observing a bug that was hard to debug: Our...
6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...
When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...
If your Webpack build is slow, you can use the Speed Measure Plugin for Webpack to figure out where time...
Webpack builds can take a long time, so we only want to compile when needed. This card shows what will...
Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into...