Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...

makandra dev

TL;DR Most web applications do not require action on this. SameSite=None (old browser default) will continue to work...

When delivering non-public uploaded files (images, documents etc), one has to decide whether and how to do authorization. The...

An alternative of using a multiple assignment for a Regex are named groups. Especially when your Regex becomes more complicates...

Was ist Elastic? Suchmaschine, basierend auf Apache Lucene größtenteils Open-Source einige kommerzielle Features ("Elastic Stack", früher "X-Pack") Zugriffsrechte...

PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...

To avoid multiple versions of a package, you can manually maintain a resolutions section in your package.json. We recommend you...

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...

While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...

When you have a powerful machine with many CPU cores, you might run into an error like

Here is how to make Rome datepicker look like the rest of your Bootstrap 4 application. Rome comes with very...

Rails' params hash contains any request parameters (URL parameters or request payload) as well as routing parameters like :controller, :action...

RSpec >= 3.3 added aggregate_failures, which allows multiple failures in an example and list them all, rather than aborting on...

makandra dev

Class-level process definitions are only applied to the original file Versions are generated based on the processed original file...

Bundler 2 requires at least Ruby 2.3.0 and RubyGems 2.5.0. You might get the following error when you try to...

tableplus.io

To remove all tables from a database (but keep the database itself), you have two options. Option 1: Drop the...

I had this error: > gem install bundler Successfully installed bundler-2.0.1 1 gem installed > bundle install Traceback (most recent call...

makandra dev

Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...

Remember How to skip Sprockets asset compile during Capistrano deployment and Automatically skipping asset compilation when assets have not changed...

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...

codepen.io

Occasionally, your designer will hand you designs where elements break the layout's horizontal container width, like navigation buttons of...

Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle

github.com

There are two ways to lock a user in devise. Using the lockable module Customizing the user account status validation...