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

Tod is a gem for working with daytimes. That's a tuple of (hour, minute second) without a day, month...

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

When doing some meta-programming magic and you want to do something for all attributes of a class, you may...

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

Rails' ActiveSupport::TimeWithZone objects have both a timezone code and offset, e.g. Thu, 28 Mar 2019 16:00:00 CET...

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

makandra dev

min-width is known as a CSS property that can be set to define a least width for an element...

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

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

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

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

Carrierwave includes some handy helper methods you can use to resize your images. Here is a quick summary of them...

For searching in large database tables we usually use PostgreSQL's fulltext search capabilities. While this works reasonably well for...

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects

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

When restoring a PostgreSQL dump using pg_restore, you usually add the --clean flag to remove any existing data from...

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

If your app does not need to support IE11, you can use most ES6 features without a build step. Just...