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...

workingdraft.de

The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different...

A memory leak is an unintentional, uncontrolled, and unending increase in memory usage. No matter how small, eventually, a leak...

For Rails models where only one of multiple attributes may be filled out at the same time, there is no...

github.com

Note Use yarn dedupe in Yarn v2+: https://yarnpkg.com/cli/dedupe This package only works with Yarn v1. Yarn v2 supports...

Recently we detected a memory leak in one of our applications. Hunting it down, we found that the memory leak...

paweldabrowski.com

The linked content includes a few design patterns implemented with Ruby on Rails. What is the card indented to achieve...

These are the results of the "personal tech stack survey". I've included only the most popular mentions, maybe it...

You can use the code below to check whether the browser can make connections to the current site: await isOnline...

joshmcarthur.com

I recently wanted to add a model for address information but also wanted to add a unique index to those...

It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...

Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...

While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...

Code quality can be measured in four levels: (Working code) Reliable code (minimum) Readable code (ok for short-lived code...

tl;dr You can use attribute? as shorthanded version of attribute.present?, except for numeric attributes and associations. Technical Details

When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...

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...

While we are used to run our JavaScript tests on a test page within our Browser, it's also possible...

We use foreman to start all necessary processes for an application, which are declared in a Procfile. This is very...

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...

github.com

When Capybara locates elements in the DOM, by default it allows only accessing visible elements -- when you are using a...

TL;DR When using Cache-Control on a Rails application, make sure the Vary: Accept header is set.