In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

Cucumber has an output format that prints step definitions only. You can use this to find unused ones: Temporarily add...

When upgrading Rails versions -- especially major versions -- you will run into a lot of unique issues, depending on the exact...

The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...

jakearchibald.github.io

There are many ways to optimize SVGs. Ideally, your build pipeline does that automatically for you (e.g. via postcss-svgo...

When projects run for many years, they require special regular maintenance to stay fresh. This kind of maintenance is usually...

codepen.io

Occasionally, your designer will hand you designs where elements break the layout's horizontal container width, like navigation buttons of...

makandra dev
github.com

Deployment ready for Opscomplete Copying view and controller templates over to target application during basics configuration or via...

When you created a project on the Google API Console which is not being used, you may receive an e...

github.com

There are two ways to lock a user in devise. Using the lockable module Customizing the user account status validation...

api.jquery.com

jQuery's removeClass removes the given class string from an element collection. If you want to remove multiple/unknown classes matching...

relishapp.com

When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...

Ubuntu has decided to disable PDF processing because ImageMagick and the underlying Ghostscript had several security issues. When your Ghostscript...

github.com

Setting array columns When using PostgreSQL array columns, you can set an array attribute to a value with square brackets...

docs.ruby-lang.org

Percent Notation We already know that that we can create strings using the percent notation: %(<foo="bar's ton">) is...

It is very common to parse dates from strings. It seems obvious to use Date.parse for this job. However this...

It is possible to access Rails config (for example secrets) from within your webpack bundles, thanks to rails-erb-loader...

When debugging your application, you will come across objects created by some gem or framework. You don't have the...

TL;DR: All modern browsers default to using the element as the main document viewport. In CSS, prefer to set...

Font Awesome 5 is a comprehensive solution for vector icons on your website. Originally, Font Awesome came as an icon...

github.com

Phusion Passenger changed the way how it gets restarted several times. Through the project's history, these all were valid...

In this example we assume that not only the storage gem changes but also the file structure on disc.

github.com

Masonry is a famous library to dynamically arrange a grid of items that have different aspect ratio, like horizontal and...

github.com

For Sidekiq to be able to retry your jobs it has to be able to catch errors that occur while...