Attention This is an edge-case. You probably don't want to mix different database dumps. It also requires that...

Note: You won't need this for single lines of text. In this case it is better to just use...

When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips

Ctrl + Alt + S > search "rubocop on save" Under "Inspections", check the highlighted box on rubocop -a Caveat: This adds a...

So you have a heading that is just barely wider than the container it should fit into, and it wraps...

Splitting up commits makes the process of reviewing often easier, since you can create several merge requests or review every...

It most cases it's not necessary to add a version constraint next to your packages in the package.json. Since...

github.com

How you order elements in the can have an effect on the (perceived) performance of the page. This script helps...

With this Ruby script you can print all values in a Redis database to your console (derived from this bash...

adactio.com

Web forms can be made much more usable with a few HTML attributes. Short summary: type: Tells browsers about the...

It is possible to manipulate the forwarded ports of an established interactive SSH session. This is done by opening the...

Looking at the source code of the validates_numericality_of validator, it becomes clear that it converts the attribute in...

When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...

Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...

You have an async function that rejects: async function failingFunction() { throw new Error("Something went wrong") } When you call that...

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

blog.mastermind.dev

I found the linked article very helpful to refresh my understanding of database indexes. As a small bonus, it includes...

Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...

Usually you add errors to :base in ActiveRecord, in case no appropriate attribute could be used to add the error...

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

A lot of web applications require being called over https, which is a good thing. It's possible to configure...

Rails Active Support provides some helpful methods for calculating times and dates, like Duration#ago or Duration#from...

Rails offers the fresh_when method to automatically compute an ETag from the given record, array of records or scope...

By activating strict_loading you force developers to address n+1 queries by preloading all associations used in the index...