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...
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.
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...
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
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...
Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...
PostgreSQL has partial indexes. With a partial index you tell Postgres to only index rows matching a given query.
Rails supports alert and notice as default flash types. This allows you to use these keys as options in e.g...
I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...
SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...
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://...
When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...
IRB 1.2 (shipped with Ruby 2.7, but works on 2.5+) brings pretty syntax highlighting and multiline cursor navigation. However, pasting...
This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...
Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...