Contributions

Article
AI-driven development is a spectrum. It's not a single thing you should use, not one setup that's universal, not one tool that's the best. Your workflow is unique to you, same as your editor setup.

I'm sharing how I navigate this without losing my sanity.
Article
Building a custom audio player with Rails? Video gets all the love, but audio deserves better UX too. Here's how to create one with Stimulus for controls and ViewComponent for modularity, complete with responsive waveform visualization and customizable features.
Article
Dynamic avatars with Ruby are a common feature as we usually want to provide sensible default values without resorting to the same default avatar for every single user.

The most common solution to this issue is to generate them using the user's initials, default images or background colors.

These solutions are fine but we can do better: in this article we will learn how to create deterministic mesh gradient avatars using Ruby and the ChunkyPNG gem to improve our avatar game
Article
As developers, there usually comes a time when we have to deal with syntax highlighting.

Whether we're building a blog, a CMS, a documentation site, or any other Rails app that accepts user-generated markdown, adding syntax highlighting to code blocks is an essential feature.

In this article, we will learn how to add syntax highlighting to Rails applications by showing different ways to do it and a couple of nice tricks to improve the user experience.
Article
Sometimes you just need to quickly clear the cache when working in your development environment. Here's a quick snippet to make that easier.
Article
Content-heavy sites need multiple assets per post, covers, diagrams, screenshots. But we often forget the most crucial one: Open Graph images. They're what users see before deciding to click. Here's how to auto-generate them in Rails with Ruby templates.
Article
Helping users navigate through our site with ease helps them reach their desired destination thus improving their experience within our application.

Breadcrumbs play a crucial part in this: they give users a clear idea of where they are and provide them a path to reach In this article, we will learn how to add breadcrumbs to a Rails app using the different types of breadcrumbs and way to add them in Rails applications.
Article
Search is everywhere 🙌

Every app needs it eventually. Rails gives us tons of options, from simple `ILIKE` queries to `pgsearch` or Elasticsearch.

This article shows how to add intelligent search in Rails using Typesense: powerful search engine, dead simple integration.
Article
The Single-Page Application madness is a part of the past and Hotwire is the go-to alternative for interactive Rails applications.

However, there are some use cases where building an API-only Rails app makes sense: mobile apps, teams that are comfortable with FE frameworks or multi-platform applications.

In this article we will learn how to add user authentication with the Rails 8 auth generator in API-only apps.
Article
Getting organic traffic is a nice and sustainable way to build a digital business.

But if we’re not careful with the way we render our pages, we can harm our ability to gain traffic from search engines. The main issue with it is duplicate or near-identical content which can affect the way our pages are indexed and ranked.

In this article, we will learn how to handle these cases properly using canonical URLs in Rails applications and some scenarios we might run into.
Article
Active Storage has greatly simplified file uploads for Rails applications: it has become the de facto standard replacing alternatives that were dominant back in the day like Paperclip or CarrierWave.

Out of the box, it comes with everything we need to handle file uploads, including cloud services like Amazon S3.

In this article, we will learn how to add direct uploads to a Rails app using Active Storage.
Article
Rails devs: Stop losing users after they close your app. Learn how to build Apple Wallet passes that live on their lock screen and trigger based on location/time. Complete guide: Apple Developer setup → pass creation → dynamic images. Your retention will thank you.
Article
Great products don't guarantee success. As acquisition costs skyrocket, smart founders use referral systems to acquire users for pennies on the dollar. Here's how to build one in Rails with the Refer gem.
Article
Learn how to integrate React into Rails applications using Superglue while keeping form helpers, flash messages, and authentication flows. This comprehensive guide covers everything from setup to server-side rendering, showing you how to build interactive UIs without sacrificing Rails productivity.
Article
Learn how to integrate the Model Context Protocol (MCP) into your Rails application to create intelligent, AI-powered tools that can interact with your data and perform complex tasks conversationally. Complete with code examples, client integrations, and real-world use cases
Article
The golden rule for libraries is to support integration with as many parent apps as possible because you want to cover as much as you can of the full spectrum of customers but Sprockets and Propshaft makes that difficult to do.
Article
Token authentication, phone number verification or any form of Two-Factor Authentication are common features nowadays.

A pattern that emerges from the fact that these codes tend to conform to a set number of characters is the input verification box.

In this article, we will learn how to build an OTP input with Stimulus that's configurable and offers a nice user experience.
Article
LLMs are getting better at understanding websites in real-time, but large context windows can cause them to miss key info among ads and irrelevant content. The llms.txt file solves this by providing a compressed, LLM-friendly Markdown version of your site's important content.
Article
If our users are moderately technical, allowing them to write Markdown instead of using a WYSIWYG editor can make them happier and more efficient.

Ruby has several gems whose main concern is parsing Markdown. Each of these has a different approach to the problem, and implements a different Markdown specification.

In this article, we will cover Commonmarker, a gem that implements the CommonMark specifications and adds support for GitHub-flavored Markdown.
Article
Deploying an application to production is usually an enriching experience: real people can use and enjoy what you've built.

Unfortunately, bad actors are a part of the internet and can be harmful if left uncontrolled.

In this article, we will learn how to add Cloudflare Turnstile to a Rails application to prevent or mitigate unwanted or malicious requests to parts of our application.
Article
Custom domains for local development in Rails can be a nice addition to our toolbox.

Trading localhost and some port number for a short and memorable domain name sounds nice, right? How about if we throw some secure connections into the mix?
Article
How to add Sign in with Apple to a Rails app - A complete guide from Apple Developer account setup to implementation with omniauth. Reduce friction in your authentication flow and meet App Store requirements in one go
Article
Improving our users' experience when they sign up for our application is usually a good idea.

That's why dividing long forms into multiple steps increases our chances for conversion.

In this article, we will build a multistep onboarding form using Rails and the Wicked gem to avoid writing any custom JavaScript while getting a comparable experience.
Article
Occasionally, when creating content using an editor, be it Markdown or WYSIWYG, we need specific parts that exceed standard formatting options.

Whether it's highlighting important information, adding visually enriched snippets or embedding third-party content, the basic editor features often fall short.

This is where adding a short code or callout feature is useful.
Library
Avo
The most powerful Ruby on Rails Admin Panel Framework!