New versions of wkhtmltopdf dissallow file:// URLs by default. You can allow them by passing --enable-local-file-access.
You have uncommited changes (you can always check by using git status), which you want to discard.
tl;dr In RubyMine you can use find and replace with capture groups (.*?) and backreferences $1 (if you have several...
The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different...
Ruby's standard library includes a class for creating temporary directories. Similar to Tempfile it creates a unique directory name...
A memory leak is an unintentional, uncontrolled, and unending increase in memory usage. No matter how small, eventually, a leak...
When you build a JSON API you need to come up with a style to represent attributes, pagination, errors or...
If you need to convert an SVG source to PS or EPS, the most common suggestion on the interwebs is...
Working with a self-signed certificate is much easier, when the browser accepts it. Google Chrome Warnings from chrome might...
When working with feature branches, stale branches pile up over time. It's best to remove them right after merge...
When your Rails application offers downloading a bunch of files as ZIP archive, you basically have two options:
Recently we detected a memory leak in one of our applications. Hunting it down, we found that the memory leak...
To read the Rails session from a Rack middleware, use env['rack.session']. It's an ActionDispatch::Request::Session object.
Issue: You have an app using jsbundling-rails and esbuild. After deploy, the assets built by esbuild are missing in...
You can use the code below to check whether the browser can make connections to the current site: await isOnline...
When redirecting you should take care to use the right HTTP status code. From controllers When redirecting from a controller...
If you have a JS fiddle, you can open it in fullscreen by appending /show to the URL. Example: https://...
Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...
When you are working with SVG files and ImageMagick you can get different results on different machines depending on which...
When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...
tl;dr: Use the URLSearchParams API to make your live easier if you want to get or manipulate query parameters...
Redis.current will be removed without replacement in redis-rb 5.0. Version 4.6.0 adds deprecation warnings for Redis.current and Redis.current=: `Redis.current...
This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...
Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...