Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...

In case your integration tests crash with a message like below, try to upgrade Capybara to a newer version (3.35.3...

We recently noticed issues with Chrome 75+ when having the w3c option enabled within the Selenium webdriver. It looks like...

I encountered a unlucky behavior of byebug 11.1.3 (the most recent version at time of writing) when using it with...

makandra dev

You can publish pre-release versions of an npm package. Naming convention for pre-release versions An npm package must...

makandra dev

When a Ruby version gem has a letter in its version number, it is considered a pre-release:

When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...

When deleting a record in your Rails app, Carrierwave automatically takes care of removing all associated files. However, the file...

makandra dev

Webpack builds can take a long time, so we only want to compile when needed. This card shows what will...

In newer passenger versions the output of passenger -v has changed. capistrano-passenger tries to parse the version and now...

To attach files to your records, you will need a new database column representing the filename of the file...

When your Rails application server raises error, Capybara will fail your test when it clears the session after the last...

makandra dev

In Ruby (almost) everything is an Object. While this enables a lot of powerful features, this concept might be confusing...

The ActionDispatch module of Rails gives you the helper method flash to access the flash messages in a response.

makandra dev

To ensure Spring is not running: bin/spring stop pkill -f spring To prevent Spring from starting again: export DISABLE_SPRING...

By default parallel_tests will spawn as many test processes as you have CPUs. If you have issues with flaky...

CarrierWave comes with a set of default configuration options which make sense in most cases. However, you should review these...

Sometimes you want to have a time in a given timezone independent from you Rails timezone settings / system timezone. I...

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

stackoverflow.blog

A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...

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

getbootstrap.com

Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...

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