Ruby articles

Brought to you by Honeybadger—simple application monitoring that helps developers move fast and fix things.

An intro to dry-schema in Ruby

Data structure and type validations are so essential in modern Rails apps. You've probably used Active Model validations and strong parameters, but did you know there is a better way? This article introduces the dry-schema gem—a faster alternative to the defaults!

Effective queries on Rails with PostgreSQL

Database queries may work fine at first, but performance problems appear as your data grows. Indexes can speed things up dramatically, but choosing the wrong type can waste memory or even slow your app down. Read this article to learn how to design effective indexes and optimize query performance in Rails with Postgres.

Full-text Search with Elasticsearch in Rails

If you're finding performance bottlenecks with full-text search in your database, it may be time to switch to Elasticsearch. In this tutorial, Ianis introduces Elasticsearch and shows us how to implement an efficient search feature in Rails.

An Introduction to the ViewComponent Gem

Modern web UIs are complex. Traditional layout/template/partial techniques are not always the best fit. ViewComponent seeks to provide a better way. It's a framework for creating reusable, testable & encapsulated view components that integrate seamlessly with Rails. In this article, Abiodun Olowode shows us how to use ViewComponent to make our Rails views more manageable.