If you want to see the git history of a project file, that doesn't exist anymore, the normal git...
tl;dr Since Rails 6+ you can use before? and after? to check if a date/time is before or after...
A memory leak is an unintentional, uncontrolled, and unending increase in memory usage. No matter how small, eventually, a leak...
When you build a JSON API you need to come up with a style to represent attributes, pagination, errors or...
Resolve @{-1} to actual branch name. (Happens when merging "-".)
When working with feature branches, stale branches pile up over time. It's best to remove them right after merge...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
Recently we detected a memory leak in one of our applications. Hunting it down, we found that the memory leak...
These are the results of the "personal tech stack survey". I've included only the most popular mentions, maybe it...
This should be fixed in the latest LTS-branches of our mysql2 fork, 0.2.x-lts and 0.3.x-lts...
Issue: You have an app using jsbundling-rails and esbuild. After deploy, the assets built by esbuild are missing in...
tl;dr Since Rails 6.1+ you can use .compact_blank or .compact_blank! to remove blank values from collections (e.g...
When paginating records, we usually need to know the number of total records in order to render pagination links. Popular...
When redirecting you should take care to use the right HTTP status code. From controllers When redirecting from a controller...
Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...
While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...
tl;dr With ES2021 you now can use str.replaceAll(), Promise.any(), logical assignment operators, numeric separators and WeakRef on all major...
You'll need openssl-3 or newer for servers running 22.04 Ruby version 3.1 uses by default the gem openssl...
The gemspec for gems allows to add metadata to your gem, some of which have a special meaning and are...
When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...
Due to the way we setup Jasmine tests in our projects, you may run into various errors when Jasmine boots...
This card explains how to generate an entity relationship diagram for your Rails application. We also show how to limit...
Sometimes you will need an input field which wraps content and grows in height as soon as content gets longer...
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...