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:
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...
While working on a Rails application, your code base will grow a collection of different file types including: Ruby (business...
Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...
Bei Automatisierungsaufgaben kannst du dich nicht immer auf fertige Tools verlassen. Häufig musst du eine Schnittstelle zu einem bestehenden System...
Siehe Advanced git [2d] aus dem Developer Curriculum.
Based on the Ruby Basics Card in the developer Curriculum Ruby is the programming language we use on the backend...
tl;dr Since Rails 6.1+ you can use .compact_blank or .compact_blank! to remove blank values from collections (e.g...
Imagine these models and associations: class Deck < ApplicationRecord has_many :cards end class Card < ApplicationRecord belongs_to :deck, optional: true...
When redirecting you should take care to use the right HTTP status code. From controllers When redirecting from a controller...
Recent IRB versions include a multi-line autocomplete which may be helpful to novice users but can be distracting.
If you get an error message like this: You have already activated some-gem 1.2.3, but your Gemfile requires some...
You'll need openssl-3 or newer for servers running 22.04 Ruby version 3.1 uses by default the gem openssl...
tl;dr You can use attribute? as shorthanded version of attribute.present?, except for numeric attributes and associations. Technical Details
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...
If you're deploying code for your lambda function via terraform, this code is usually zipped and uploaded to Amazon...
Due to the way we setup Jasmine tests in our projects, you may run into various errors when Jasmine boots...
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...