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',

Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...

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

From at least Rails 4, the ActionView tag helper turns Array values of HTML options into a single space-separated...

Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...

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

Spammers have started abusing other application to send their spam. This works like this: The application has some form that...

tableplus.io

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

When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...

When upgrading Rails versions -- especially major versions -- you will run into a lot of unique issues, depending on the exact...

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

The exception_notification gem supports to provide custom data to e.g. the fail mail within foreground or background jobs. ExceptionNotifier.notify...

We figured out, that ActiveJob Inline might lead to autoloading problems in development. The result was an exception when running...

When you created a project on the Google API Console which is not being used, you may receive an e...

makandra dev

Ubuntu has decided to disable PDF processing because ImageMagick and the underlying Ghostscript had several security issues. When your Ghostscript...

developers.google.com

Mobile Chrome and Safari support the "web share API" which allow you to use the native share functionality of an...

It is possible to access Rails config (for example secrets) from within your webpack bundles, thanks to rails-erb-loader...

github.com

Phusion Passenger changed the way how it gets restarted several times. Through the project's history, these all were valid...

In this example we assume that not only the storage gem changes but also the file structure on disc.

makandra dev

Cross-Site Request Forgery (CSRF) is an attack pattern for websites. A CSRF attack is usually relevant in a...

Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...

Migrating data from a legacy into a new system can be a surprisingly large undertaking. We have done this a...