The sidekiq-rate-limiter gem allows rate-limiting Sidekiq jobs and works like a charm. However, it needs to be...

When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...

news.ycombinator.com

This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...

A flat folder structure can be cool if you have only a few folders but can be painful for huge...

Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...

makandra dev

4.0.0 2020-07-30 Compatible changes Improved documentation; README now includes command options. Improvement #90: geordi console, geordi deploy, geordi...

If you have a :string or :text field, you should pair it with a model validation that restricts its length...

Select2 is a fantastic library for advanced dropdown boxes, but it depends on jQuery. Alternatives Tom Select

In a web application you sometimes have tasks that can not be processed during a request but need to go...

makandra dev
select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...

There is a reasonable simple way to move data between Redis servers: Simply temporarily configure the new server as a...

tl;dr Don't forget require 'English' if you use a named global such as $LAST_MATCH_INFO. Otherwise this...

We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will...

github.com

The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...

With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...

Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...

Embedding videos on a website is very easy, add a tag to your source code and it just works...

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

medium.com

Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...

This checklist should help you to check edge cases that are not part of the default Carrierwave configuration.

If you want to make your Rails application be capable of sending SMTP emails, check out the action mailer configuration...

matthewphillips.info

A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...