ActiveType::Object inherits from ActiveRecod::Base and is designed to behave like an ActiveRecord Object, just without the database...
tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...
tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...
New versions of wkhtmltopdf dissallow file:// URLs by default. You can allow them by passing --enable-local-file-access.
You have uncommited changes (you can always check by using git status), which you want to discard.
The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different...
If the project you're working on has, say, 39 repositories and counting in GitLab and you need all the...
Ruby's standard library includes a class for creating temporary directories. Similar to Tempfile it creates a unique directory name...
If you want to see the git history of a project file, that doesn't exist anymore, the normal git...
Resolve @{-1} to actual branch name. (Happens when merging "-".)
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...
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...