Ruby articles

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

Account-based subdomains in Rails

Account-based subdomains are a powerful feature that can give your app extra security by isolating user data while giving your users the ability to customize their experience. In this article, you'll learn what account-based subdomains are, why they matter, and how to implement them in a Rails application.

Let's build a Hanami app

Hanami is a fresh take on building full-stack Ruby apps. With its focus on abstractions, minimal defaults, and speed, it could be the framework to take on Rails' dominance of the Ruby landscape. In this tutorial, we build a simple app using Hanami and, along the way, learn the framework and how it works.

Composite primary keys in Rails

There are scenarios where a combination of columns needs to be used as the primary key. This is where composite primary keys come into play. This article explores composite primary keys, how they work in Rails, when they should be used, and what to consider when using them.