When you repeat a subpattern with a *, + or {...} operator, you may choose between greedy, lazy and possessive modes. Switching modes...
Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...
I just ran into this deployment error after switching from the asset pipeline to webpack: 01:05 deploy:assets:precompile...
I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...
The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...
In long diffs, it can become impossible to spot small changes in larger blocks of moved code. This may be...
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://...
Liquid Prompt gives you a nicely displayed prompt with useful information when you need it. It shows you what you...
When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...
Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...
If you have installed Rubocop in your project, RubyMine can show you Rubocop violations immediately in your editor. You probably...
curl-to-ruby is a handy tool that converts your curl command to ruby code that uses the Net::HTTP...
Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...
Sometimes you want to find the inverse of an ActiveRecord scope. Depending on what you want to achieve, this is...
Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...
We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...
On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...
Installing old Rubies (<= 2.3) with a standard rbenv + ruby-build is no longer possible on Ubuntu 20.04. This is because...
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...
The sidekiq-rate-limiter gem allows rate-limiting Sidekiq jobs and works like a charm. However, it needs to be...
If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...