tl;dr: Upgrade the gem to at least 4.0.1 When you use rspec_rails in a version < 4 with Rails...

If your project depends on an old version of ImageMagick that you can no longer install in your system, you...

bundle outdated [--filter-major|--filter-minor|--filter-patch] Example output for bundle outdated --filter-major Other examples

By default, your terminal emulator (Gnome Terminal, Terminator, etc.) sets some kind of window title to reflect the shell type...

makandra dev

Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...

In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...

When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...

Headless Chrome is a way to run the Chrome browser without a visible window. Configuring Capybara Configure the Capybara driver...

IRB 1.2 (shipped with Ruby 2.7, but works on 2.5+) brings pretty syntax highlighting and multiline cursor navigation. However, pasting...

makandra dev

This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

github.com

Minidusen lets you find text in associated records. Assume the following model where a Contact record may be associated with...

When loading a database dump created with pg_dump into your database, you might run into an error like

It sometimes happen that a database dump, that would want to insert into your development database, does not match the...

web.archive.org

There is a common view that extracting text from a PDF document should not be too difficult. After all, the...

The sidekiq-rate-limiter gem allows rate-limiting Sidekiq jobs and works like a charm. However, it needs to be...

When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...

To find a version containing the regular expression foo in the history of any branch: git grep foo $(git rev...

A flat folder structure can be cool if you have only a few folders but can be painful for huge...

Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...

Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...

github.com

grep is the go-to CLI tool to accomplish tasks like filtering large files for arbitrary keywords. When additional context...

If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...