You have uncommited changes (you can always check by using git status), which you want to discard.

workingdraft.de

The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different...

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...

makandracards.com

Resolve @{-1} to actual branch name. (Happens when merging "-".)

greg.molnar.io

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...

github.com

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...

Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...

tl;dr Since Rails 6.1+ you can use .compact_blank or .compact_blank! to remove blank values from collections (e.g...

blog.saeloun.com

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.

makandra dev

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...

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...