Carrierwave includes some handy helper methods you can use to resize your images. Here is a quick summary of them...
For searching in large database tables we usually use PostgreSQL's fulltext search capabilities. While this works reasonably well for...
This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects
I had this error: > gem install bundler Successfully installed bundler-2.0.1 1 gem installed > bundle install Traceback (most recent call...
Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...
Remember How to skip Sprockets asset compile during Capistrano deployment and Automatically skipping asset compilation when assets have not changed...
In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...
Puma allows you to specify the max and min threads. In development this could be useful if you use a...
When upgrading Rails versions -- especially major versions -- you will run into a lot of unique issues, depending on the exact...
When projects run for many years, they require special regular maintenance to stay fresh. This kind of maintenance is usually...
When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...
Geordi uses parallel_tests if available for running the test suite. To debug an application it is very unhandy to...
When debugging your application, you will come across objects created by some gem or framework. You don't have the...
S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads...
There seems to be no built-in matcher in RSpec to check if a string contains terms in the desired...
Masonry is a famous library to dynamically arrange a grid of items that have different aspect ratio, like horizontal and...
For Sidekiq to be able to retry your jobs it has to be able to catch errors that occur while...
Cross-Site Request Forgery (CSRF) is an attack pattern for websites. A CSRF attack is usually relevant in a...
A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you...
If validations failed for a record, and you want to find out if a specific validation failed, you can leverage...
We want to keep a changelog for all gems we maintain. There are some good practices for writing a changelog...
Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...
Migrating data from a legacy into a new system can be a surprisingly large undertaking. We have done this a...
In a project team for a bigger project people have several roles: Developer: at makandra Project lead: at makandra