makandra dev

There is a practical short list for valid/invalid example email addresses - Thanks to Florian L.! The definition for valid emails...

Rails uses a CSRF token in forms and AJAX requests to verify a user request. Internally it compares the injected...

Normally, Rails handles encryption and signing of cookies, and you don't have to deal with the matter. Should you...

Unicorn allows you to specify the maximum number of workers. In development this could be useful if you use a...

The bin/webpack-dev-server command is not as smart as e.g. rails server, where it shows the proper fix within the error...

There was an issue with makandra_sidekiq < 0.2 concerning the stopping of Sidekiq. Sidekiq < 6 has two finishing timeouts: one...

Most of the time it is a tedious task to apply a code style guide to an existing code...

As an application exists, data accumulates. While you'll be loosely monitoring the main models' record count, some supportive database...

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

You can use constraints in your routes.rb to avoid getting ActionView::MissingTemplate errors when wrong routes are called. Instead, the...

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

Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...

When upgrading Clearance, pay attention whether the password hashing strategy might have changed. Old clearance versions (< 1.0) used SHA1-encrypted...

If you use webpacker in your Rails application, and you have completely disabled Sprockets, you might get the following error...

When a user shares your content, a snippet with title, image, link and description appears in her timeline. By default...

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

github.com

From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

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

The gem json fails to install for Ruby 2.5 if you use a version equal or below 1.8.3.

makandra dev
github.com

Katapult was an endeavor to dramatically speed up starting a new Rails application. However, it turned out to save less...

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

Not all versions of Node.js are compatible with each other. Also npm packages may require a minimum or maximum version...