Markdown in Ruby on Rails with RedCarpet

What is Markdown

What is Markdown

We integrated the OpenTelemetry Ruby logs SDK in a Rails app to export logs directly to a vendor, without running a Collector.

📌 Overview Ruby on Rails has helped make it possible to scale out the database layer, meeting the demands of millions of Aura Frames customers enjoying their digital photo frames. In late 2025, the team added additional primary databases to expand capacity for peak write and…
LLM calls are black boxes in production. Learn how to add structured observability to your RubyLLM-powered app with OpenTelemetry.

After 50+ engagements, I've learned the first week isn't about reading the code. It's about reading the signals.

Learn how Rails polymorphic associations work under the hood, from database schema to model setup, with clear examples for JavaScript developers new to ActiveRecord.

We run a multi-tenant Rails application with sensitive data and layered authorization. In this post, I walk through how I added the first AI agent tool using RubyLLM, Pundit policies, and our existing Algolia search, without introducing a parallel system or loosening constraints.

We are going to set up Showcase for a Rails application in the first part of this three-part series on Showcase.
For the last ten years or so of working on Bundler, I’ve had a wish rattling around: I want a better dependency manager. It doesn’t just manage your gems, it manages your ruby versions, too. It doesn’t just manage your ruby versions, it installs pre-compiled rubies so you don’t…
For twenty-two years, thoughtbot has helped companies and organizations of...

We'll dive into how ActiveStorage treats uploaded data, and how to extend this process, in part one of this two-part series.
Ruby on Rails (Rails) has long been the go-to framework for rapid, convention-driven web development. As of Rails 8 (expected in 2025), the architecture has matured while embracing new paradigms like…

The Rails defaults are a good foundation, but it’s still your responsibility to filter sensitive information from logs when using external APIs, services, and tools.

Rails gives you the tools to build custom features that still feel native.
Learn how to add image uploads to a markdown field using the EasyMDE editor, Rails and Active Storage.

Sorting columns in custom order in Rails elegantly using inemorder/emof.

If someone tries to steal a penguin, how should you warn them?


As it turns out, OpenAI’s rate limits are a little more complicated than other APIs.

Need to catch N+1 queries without adding any extra dependencies to your project? Strict Loading makes it effortless, but your configurations need to be set up correctly to avoid unexpected behaviors.

With the release of Rails 8, asset management in Rails got faster and simpler with the new asset pipeline, Propshaft, which is not only simpler but also more aligned with modern Rails development needs compared to its predecessor, Sprockets.

The Marie Kondo for bits of HTML that spark joy but have no home.

Let's delve into advanced ActiveRecord queries, shining a spotlight on more complex joins, custom SQL, and strategic employment of database-specific features.
Heroku can quickly get expensive. Dig into this article to learn some concrete strategies to reduce your Heroku bill!

Transitioning the codebase from using environment variables to Rails Credentials for Zero-Downtime Deploys.

Discover why Rails 8.0 removed Rails::ConsoleMethods, learn the impact on your Rails console, and explore modern alternatives.

From bare metal to cloud VMs using Docker, deploy web apps anywhere with zero downtime.

Transitioning the codebase from using environment variables to Rails Credentials for Zero-Downtime Deploys.
Environment variables are not encrypted and therefore they can not be stored in any form of version control.
makes it easier to add new credentials because you don’t need to tell other developers to add them to their own .env file.

Since Kamal 2 can host multiple sites on the same server, I am consolidating my apps into larger hosts so I have less servers to worry about. Most of my apps are Rails apps, but I have a few static jekyll sites like this blog and I decided to look into how could I move this site…

A few best practices to keep in mind when getting started with Hotwire and Rails.

Get the comprehensive, insider information you need for Rails 8 with the new edition of this award-winning classic.

Build fast, scalable PostgreSQL and Rails apps. Solve data growth, quality, and reliability challenges, for workloads from consumer Internet to enterprise SaaS.
Do a 'full fat install' of Ruby on Rails and see what's changed since its heyday of Web 2.0 — and how it has inspired modern frameworks.
In the second part of this two-part series, we'll use AppSignal to monitor the performance of our Ruby on Rails application.

Let's see how we can use Tailwind CSS in a Rails application and explore its utility-first approach.
Hotwire is an alternative approach to building modern web applications without using much JavaScript by sending HTML instead of JSON over the wire.
We unveil the toolbox of the Martian Rails engineer; we begin constructing a Gemfile from the universe of Martian gems that encapsulate our philosophy and soul.

In the first part of a two-part series, we'll introduce how to set up DigitalOcean and AppSignal for a Ruby on Rails application.
A guide to setting up a Ruby on Rails development environment on Ubuntu 24.04 Noble Numbat with Git, MySQL, and PostgreSQL

Want to setup React on your Rails 7 app but don’t know how do it? Read this post to explore options to consider when using React with Ruby on Rails.

Active Storage is a framework that handles file uploads, allowing you to store them as attachments...

Ruby’s garbage collector is designed to be adaptable, scaling from short Ruby scripts to running apps that serve millions of requests per second. While it’s designed to be adaptable, it may not work optimally for every use case. For this reason, Ruby’s garbage collector supports…
This is my personal site, where I write about Ruby, programming, and any of my varied fascinations.

Heroku offers simple, flexible pricing to meet the needs of every app and every organization. Add data stores, cloud services, support, and more.