Debugging your integration tests, that run a headless Chrome inside a docker image, is tricky. In many cases you can...

When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...

Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...

tl;dr Individual transform properties are great because they allow you to write more readable and maintainable CSS, especially when...

Sidekiq 7 adds a new feature called capsules. Use cases: a chrome queue limited to 1 for e.g. PDF processing...

blog.mastermind.dev

I found the linked article very helpful to refresh my understanding of database indexes. As a small bonus, it includes...

If you use a newer SSH key generated with the ED25519 algorithm instead of RSA (see Create a new SSH...

This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...

Sometimes, the rails dev server doesn't terminate properly. This can for example happen when the dev server runs in...

After upgrading to Rails 6.1.7.2 one of our apps printed a wall of warnings while booting: /var/www/app/shared/bundle/ruby/2.6.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:68: warning: already...

You have some SVG files you want to use as icons on your website. How would you embed them?

If you're experiencing that your bundle install command fails with an error message like this, rubygems.org might...

Unpoly's [up-observe], [up-autosubmit] and [up-validate] as well as their programmatic variants up.observe() and up.autosubmit...

Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote...

makandra dev

tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...

To allow HTTP 304 responses, Rails offers the fresh_when method for controllers. The most common way is to pass...

greg.molnar.io

Greg Molnar has written a neat article about creating a single-file Rails app. This is not meant for production...

When working with feature branches, stale branches pile up over time. It's best to remove them right after merge...

Sometimes the need arises for SSL in local development. We have guides for different webservers, this one is for puma...

paweldabrowski.com

The linked content includes a few design patterns implemented with Ruby on Rails. What is the card indented to achieve...

These are the results of the "personal tech stack survey". I've included only the most popular mentions, maybe it...

Issue: You have an app using jsbundling-rails and esbuild. After deploy, the assets built by esbuild are missing in...

Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...

It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...