In Ruby on Rails ActiveRecord::Relation#merge overwrites existing conditions on the same column. This may cause the relation to...

To navigate between test and test subject Rubymine requires you to set the test root sources as Test Sources Root...

If you're using a Redis cache in Rails (e.g. :redis_cache_store), it's possible to configure additional parameters...

Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...

ruby-doc.org

We will achieve this by creating a block accepting method to optionally create and then lock a .lock File of...

makandra dev

This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...

makandra dev

Rails partials have a lot of "hidden" features and this card describes some non-obvious usages of Rails Partials.

Not all email clients support external images in all situations, e.g. an image within a link. In some cases, a...

Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...

kukicola.io

Using ActiveRecord's #signed_id and .find_signed methods you can create URLs that expire after some time. No conditionals...

We usually rely on VCR and WebMock to prevent any real network connection when running our unit tests.

The cards editor has a feature "Cite other card" to create links to other cards in the same deck as...

You have some SVG files you want to use as icons on your website. How would you embed them?

In esbuild, you usually import other files using relative paths: import './some-related-module' import `../../utils/some-utility-module` import `../../../css/some-css.sass` This is totally fine...

tl;dr The Chrome DevTools are a neat collection of tools for the daily work as a web developer. If...

Git allows you to set push options when pushing a branch to the remote. You can use this to build...

Unpoly's [up-observe], [up-autosubmit] and [up-validate] as well as their programmatic variants up.observe() and up.autosubmit...

makandra dev

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.

tl;dr In RubyMine you can use find and replace with capture groups (.*?) and backreferences $1 (if you have several...

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

A memory leak is an unintentional, uncontrolled, and unending increase in memory usage. No matter how small, eventually, a leak...