PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...
This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...
While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...
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...
If a systemd service unit is blocked by rate limiting (see in documentation) you can reset the failcounter via:
When you have a powerful machine with many CPU cores, you might run into an error like
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...
This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects
When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...
When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...
In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...
Cucumber factory supports polymorphic associations out of the box. Just keep in mind that you need to use named associations...
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...
Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle
There are two ways to lock a user in devise. Using the lockable module Customizing the user account status validation...
When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...
Percent Notation We already know that that we can create strings using the percent notation: %(<foo="bar's ton">) is...
Mobile Chrome and Safari support the "web share API" which allow you to use the native share functionality of an...
Geordi uses parallel_tests if available for running the test suite. To debug an application it is very unhandy to...
It is possible to access Rails config (for example secrets) from within your webpack bundles, thanks to rails-erb-loader...