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

island94.org

GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...

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

makandra dev
github.com

FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...

postgresql.org

TL;DR PostgreSQL handles Rails 4+ text and string columns the same. Some libraries may still reflect on the column...

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

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...

To make CSS rules dependent on the screen size, we use media queries: @media (max-width: 500px) { // rules for screen...

millarian.com

In Active Record you can use named bindings in where-conditions. This helps you to make your code more readable...

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

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

Chrome allows you to throttle the Network and the CPU. Both settings are useful to measure the performance of you...

We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...

makandra dev

Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...

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

PostgreSQL and ActiveRecord have a good support for storing dynamic attributes (hashes) in columns of type JSONB. But sometimes you...

medium.com

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

Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...

Browsers come with a set of built-in elements like or . When we need a new component not covered by...

pganalyze.com

It's every developer's nightmare: SQL queries that get large and unwieldy. This can happen fairly quickly with the...

eregon.me

Bundler 2 introduced various incompatibilites und confusing behavior. To add to the confusion, Bundler's behavior changed after the release...