We usually rely on VCR and WebMock to prevent any real network connection when running our unit tests.
tl;dr You should decouple migrations from models by embedding models into the migration. To use STI in this scenario...
If you're experiencing that your bundle install command fails with an error message like this, rubygems.org might...
If you need to convert an SVG source to PS or EPS, the most common suggestion on the interwebs is...
Greg Molnar has written a neat article about creating a single-file Rails app. This is not meant for production...
Sometimes the need arises for SSL in local development. We have guides for different webservers, this one is for puma...
Note Use yarn dedupe in Yarn v2+: https://yarnpkg.com/cli/dedupe This package only works with Yarn v1. Yarn v2 supports...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
This should be fixed in the latest LTS-branches of our mysql2 fork, 0.2.x-lts and 0.3.x-lts...
Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...
You'll need openssl-3 or newer for servers running 22.04 Ruby version 3.1 uses by default the gem openssl...
When you are working with SVG files and ImageMagick you can get different results on different machines depending on which...
There is a way to use multiple databases in Rails. You may have asked yourself how you're able to...
The $gemname.gemspec file adds metadata to your Gem. You can provide links to your Github bugtracker or changelog file that...
When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...
This card explains how to generate an entity relationship diagram for your Rails application. We also show how to limit...
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...
To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...
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...
Rack::SteadyETag is a Rack middleware that generates the same default ETag for responses that only differ in CSRF tokens...
ImageMagick can convert SVGs to raster image formats. Example for PNG: convert input.svg output.png If the SVG has a...
The Interactive Advertising Bureau (IAB) is a European marketing association which has introduced a standard how advertising can be served...
Similar to the Webpack Bundle Analyzer, Chrome's new Lighthouse feature … … shows a visualisation of your JavaScript bundles. It's...