There are a few ways to access view helpers from the Rails console. The easiest way is the helper shortcut...

github.com

I got this error after upgrading Ruby from 2.4.5 to 2.6.4 when I opened the Rails console - rails server still...

When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...

makandra dev

CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...

There are several ways to merge two (or more) PDF files to a single file using the Linux command line...

Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of...

When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...

makandra dev

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

The issue in this card can occur if the node_modules directory is checked into your Git repository. We usually...

When you update your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests.

When deploying with capistrano it's possible you get this "error" message: *** [err :: example.com] There are no Phusion Passenger-served...

stackoverflow.com

Set up a package root in your homedir to hold the Node "global" packages: $ NPM_PACKAGES="$HOME/.npm-packages"

jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...

makandra dev

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

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

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

In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',

Sometimes you might need to do some task in GitLab which would be tedious if you'd have to do...

This is not encouraged because this change is easily forgotten. We recommend using this only if you know what you...

When we want to use our own (or bought) fonts in an application with Webpack(er), we have two options...

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