When you build a JSON API you need to come up with a style to represent attributes, pagination, errors or...

If you need to convert an SVG source to PS or EPS, the most common suggestion on the interwebs is...

Working with a self-signed certificate is much easier, when the browser accepts it. Google Chrome Warnings from chrome might...

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

To read the Rails session from a Rack middleware, use env['rack.session']. It's an ActionDispatch::Request::Session object.

Issue: You have an app using jsbundling-rails and esbuild. After deploy, the assets built by esbuild are missing in...

You can use the code below to check whether the browser can make connections to the current site: await isOnline...

When redirecting you should take care to use the right HTTP status code. From controllers When redirecting from a controller...

If you have a JS fiddle, you can open it in fullscreen by appending /show to the URL. Example: https://...

Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...

Code quality can be measured in four levels: (Working code) Reliable code (minimum) Readable code (ok for short-lived code...

When you are working with SVG files and ImageMagick you can get different results on different machines depending on which...

When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...

tl;dr: Use the URLSearchParams API to make your live easier if you want to get or manipulate query parameters...

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

This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...

Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...

Attaching files to a field that is handled by Carrierwave uploaders (or maybe any other attachment solution for Rails) in...

Sometimes you need to access a dev server running on localhost from another machine that is not part of the...

RSpec Rails can automatically mix in different behaviors to your tests based on their type tag, for example enabling you...

TL;DR When using Cache-Control on a Rails application, make sure the Vary: Accept header is set.

makandra dev
github.com

Rack::SteadyETag is a Rack middleware that generates the same default ETag for responses that only differ in CSRF tokens...

Elasticsearch defaults to go into readonly mode when you run low on disk space (< 95%). You might then see an...