In case your integration tests crash with a message like below, try to upgrade Capybara to a newer version (3.35.3...
Capybara added a deprecation warning in version 3.35.3 (version from 2019) that shows up if your selector is not of...
Table of content for the linked article: 1. The `loading=lazy` attribute 2. Email, call, and SMS links
This card is a general reminder to avoid the short version of a command option in shared code. It's...
Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into...
The ActionDispatch module of Rails gives you the helper method flash to access the flash messages in a response.
ZSH is an alternative command line shell that includes some features like spelling correction, cd automation, better theme, and plugin...
Sometimes you want to have a time in a given timezone independent from you Rails timezone settings / system timezone. I...
A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...
When running an older version of docker-compose you might see the following error: ERROR: Version in "./docker-compose.yml" is unsupported...
Rails supports alert and notice as default flash types. This allows you to use these keys as options in e.g...
In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...
In Ruby you can communicate between processes with sockets. This might be helpful in tests that validate parallel executions or...
SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...
Whenever requires you to set the application attribute in your Capistrano configuration. Otherwise your cronjobs are created multiple times.
Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...
While both the alt attribute and the figcaption element provide a way to describe images, the way we write for...
In Rubocop you might notice the cop Style/CaseEquality for e.g. this example: def foo(expected, actual) expected === actual end
Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...
It sometimes happen that a database dump, that would want to insert into your development database, does not match the...
Good reference how to build bootstrap forms with simple_form.
If you want to get the path of a file relative to another, you can use the expand_path method...
This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...
In interactive commands, Git allows the user to provide one-letter input with a single key without hitting enter (docs...