Embedding videos on a website is very easy, add a tag to your source code and it just works...

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

PostgreSQL and ActiveRecord have a good support for storing dynamic attributes (hashes) in columns of type JSONB. But sometimes you...

medium.com

Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...

When you have two inputs, where one contains the name of the other (eg. Name and Name with special treatment...

eregon.me

Bundler 2 introduced various incompatibilites und confusing behavior. To add to the confusion, Bundler's behavior changed after the release...

Install the latest bundler version: gem install bundler Fetching bundler-2.3.5.gem Successfully installed bundler-2.3.5 1 gem installed Update the bundler...

Rubygems supports a 2FA for your account. Once enabled you need to provide your personal OTP code for every release...

api.rubyonrails.org

ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To travel a relative amount of...

The Ruby standard lib ships with a YAML Parser called Psych. But serializing and deserializing data seems not as obvious...

Most of the time it is a tedious task to apply a code style guide to an existing code...

github.com

I got this error after upgrading Ruby from 2.4.5 to 2.6.4 when I opened the Rails console - rails server still...

When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...

github.com

With this gem your transaction blocks raise an error when they have side effects that cannot be rolled back.

makandra dev

The ruby sass gem also installs a command line tool to convert to and from SCSS. Use it for a...

Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...

When upgrading Clearance, pay attention whether the password hashing strategy might have changed. Old clearance versions (< 1.0) used SHA1-encrypted...

makandra dev

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

github.com

From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...

RubyMine comes with a nice way to grep through your project's files: The finder (ctrl + shift + f). Don't...

If your Ruby project includes a gem like Spreewald that comes with some external step definition, RubyMine does not know...

The gem json fails to install for Ruby 2.5 if you use a version equal or below 1.8.3.

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

When installing a gem you can use version comparators like >= or ~>. That way it is possible to fetch the latest...