If you want to build a small CLI application, that supports more advanced inputs than gets, I recommend using the...
The DB schema is the most important source of truth for your application and should be very self-explanatory. If...
We usually ship applications that self-host webfonts to comply with GDPR. Many popular web fonts are available as NPM...
The linked article shows how to configure omniauth-multi-provider to support multiple SAML identity providers for a single Rails...
tl;dr Set profile.password_manager_leak_detection to false in your Selenium Chrome options to disable password leak detection and...
If you need dummy data to play around with in development, it's often faster to reuse your existing factories...
Use these snippets when you want to measure yourself. Currently available: Core Web Vitals Largest Contentful Paint (LCP) Largest Contentful...
Our projects with parallel_tests and cucumber used to have a patched failure logger as the one from parallel_tests...
It can be hard to understand what causes a browser scroll smoothly or instantly. CSS, JavaScript and the browser settings...
Say you wrap your index view in a form to apply different filters like pagination or a search query. On...
To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...
The currentColor CSS keyword references the current text color and can be used to apply an element's text color...
When you want to filter records in a model where a string column roughly matches a given term, you can...
Interactively rebase your current branch onto main, keeping the original base commit (i.e. not rebasing onto main directly).
When you send automated emails from a noreply@-address, and the recipient has an out of office enabled, the autoreply...
Orca is a Linux screen reader. Since it is part of the GNOME project it should come preinstalled with Ubuntu...
For Selenium tests, your browser starts in your local timezone, or whatever your system's environment specifies. This is usually...
Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...
DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...
ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...
SVG files often contain redundant information, like editor metadata or hidden elements. When esbuild handles your static assets, you can...
Method delegation in Rails can help you to keep your code organized and avoid deep call chains (law of demeter...
Haml renders HTML with indentation reflecting the nesting level of elements. When it comes to white-space preserving content, this...
Given there is a user with an attachable avatar: class User < ApplicationRecord has_one_attached :avatar end