While renaming a file sometimes feels like "dropping its history", that is not true: Just use git log --follow on...
When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...
To attach files to your records, you will need a new database column representing the filename of the file...
I really love to use the shortcuts CTRL+Alt+ Arrow Left and CTRL+Alt+ Arrow Right to navigate through the...
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...
A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...
If your project depends on an old version of ImageMagick that you can no longer install in your system, you...
Insomnia is a GUI tool to help you communicating with an API. There are also other tools to do this...
When running an older version of docker-compose you might see the following error: ERROR: Version in "./docker-compose.yml" is unsupported...
There are several tools for DNS debugging which offer you more or less information. Most of the time the more...
When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...
Headless Chrome is a way to run the Chrome browser without a visible window. Configuring Capybara Configure the Capybara driver...
Feature Queries (Edge 12+): Similar to @media queries, @supports blocks can be scoped to browsers that support a given declaration...
If you have installed Rubocop in your project, RubyMine can show you Rubocop violations immediately in your editor. You probably...
Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...
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...
If you're experiencing problems with your Google Chrome installation after an update, it might help downgrading Chrome to check...
On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...
When loading a database dump created with pg_dump into your database, you might run into an error like
When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...
ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...
This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...