In case you're wondering, when concat-ing server certificate and intermediate certificates, the server certificate comes first.
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...
To remove all tables from a database (but keep the database itself), you have two options. Option 1: Drop the...
The standard way to abort async code is that your function takes a AbortSignal { signal } property. The caller can use...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...
Rails ships with two separate build pipelines: Sprockets ("asset pipeline") and Webpacker. Webpacker has many more moving parts, but allows...
When your code does not behave as expected, you can use a debugger statement ("breakpoint") at any point in your...
The rendered font often depends on the local font your system provides, therefore you often find a rule like below...
Puma allows you to specify the max and min threads. In development this could be useful if you use a...
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...
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...
Ubuntu has decided to disable PDF processing because ImageMagick and the underlying Ghostscript had several security issues. When your Ghostscript...
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...
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.
Cross-Site Request Forgery (CSRF) is an attack pattern for websites. A CSRF attack is usually relevant in a...
A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you...
Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...
At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (> 1M downloads...
When you receive a ZIP file from a Windows user, umlauts and other non-latin1 characters in filenames may look...