If you want to prevent that two processes run some code at the same time you can use the gem...

If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...

developer.squareup.com

We're pleased to announce Ruby 3’s new language for type signatures, RBS. One of the long-stated goals...

island94.org

GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...

makandra dev
github.com

FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...

postgresql.org

TL;DR PostgreSQL handles Rails 4+ text and string columns the same. Some libraries may still reflect on the column...

Select2 is a fantastic library for advanced dropdown boxes, but it depends on jQuery. Alternatives Tom Select

In a web application you sometimes have tasks that can not be processed during a request but need to go...

github.com

If you render markdown from user input, an attacker might be able to use this to inject javascript code into...

When an event listener on a DOM element throws an error, that error will be silenced and not interrupt your...

We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...

We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will...

Using git fixup helps you to speed up appending changes further back in the git history of your feature branch...

In case you want to use pry with an older version of Ruby, you can try the following configurations.

When you have many changes, and you want to spread them across different commits, here is a way to stage...

github.com

The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...

Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...

When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...

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

github.com

Because colors improve readability so much. On Ubuntu 18.04 you can install it with sudo apt install grc

engineering.wework.com

Ruby's Net::HTTP library repeats a failing request once, as long as it deems it idempotent (GET, HEAD etc...

We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...