When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...

makandra dev
github.com

Pagy is a gem for pagination. They make some bold claims: Pagy is the ultimate pagination gem that outperforms the...

ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...

To find a version containing the regular expression foo in the history of any branch: git grep foo $(git rev...

news.ycombinator.com

This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...

Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.

If you are trying to integrate VCR and Cucumber 4 and you're using the use_scenario_name: true option...

In interactive commands, Git allows the user to provide one-letter input with a single key without hitting enter (docs...

Here is an example with the --tags option. You need to wrap them inside --cucumber-options option of parallel_cucumber...

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.