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...
Attaching files to a field that is handled by Carrierwave uploaders (or maybe any other attachment solution for Rails) in...
Sometimes you need to access a dev server running on localhost from another machine that is not part of the...
RSpec Rails can automatically mix in different behaviors to your tests based on their type tag, for example enabling you...
Proxy caching is a good feature to serve your publicly visible application content faster and reduce load on your servers...
Rack::SteadyETag is a Rack middleware that generates the same default ETag for responses that only differ in CSRF tokens...
Elasticsearch defaults to go into readonly mode when you run low on disk space (< 95%). You might then see an...
Some users might use Adblock Plus or similar browser plugins to reduce the number of ads displayed. If you run...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...
Within development and test environments, Rails is usually configured to show a detailed debug page instead of 404s. However, there...
This RailsCast demonstrated a very convenient method to activate VCR for a spec by simply tagging it with :vcr.
Bookmarks for directories will be most helpful if you are forced to work in deeply nested projects. Then it's...
With cd .. you can navigate one directory up from the one you are at now. If you use that a...
Rails has the handy controller method send_file which lets us download files easily. We can decide whether the file...
It is generally discouraged to load your JavaScript by a tag in the : The reason is that a tag will pause the DOM parser until the script has loaded and executed. This will delay the browser's first contentful paint. A much better default is to load your scripts with a tag: A deferred script has many...
This bookmarklet grabs a PivotalTracker story title, transforms it into a valid git branch name and automatically prepends your initials...
It seems like changing the HTTP_ACCEPT_LANGUAGE is not possible for a headless chrome. On Ubuntu the headless Chrome...
Formerly 301 (Moved Permanently) and 302 (Found) were used for redirecting. Browsers did implement them in different ways, so since...
When using RestClient to make an HTTP request, it will raise an exception when receiving a non-successful response.