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...
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...
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...
See the attached link for a useful overview of modern (and classic) DOM API methods, like matches, contains, append, cssText...
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...
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...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...
In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...
Cucumber has an output format that prints step definitions only. You can use this to find unused ones: Temporarily add...
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...
There are many ways to optimize SVGs. Ideally, your build pipeline does that automatically for you (e.g. via postcss-svgo...
When projects run for many years, they require special regular maintenance to stay fresh. This kind of maintenance is usually...
Occasionally, your designer will hand you designs where elements break the layout's horizontal container width, like navigation buttons of...