The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Serviz - New release with Workflows
Serviz provides a minimal “command object Interface” for your Ruby apps. There are several gems in this space, but this one provides a really small API and footprint (code is around 80 lines). [more inside]
Async render in Rails
allows you to squeeze 5-15% of performance of your existing Rails app with just a few lines of code.
ClusterKit: High-performance UMAP and clustering for Ruby
ClusterKit brings state-of-the-art dimensionality reduction and clustering algorithms to Ruby through native Rust bindings. Run UMAP, PCA, K-means, and HDBSCAN directly in your Ruby process with performance matching Python’s scikit-learn - no Python required. [more inside]
How to edit images with Gemini
This post documents how to edit an image with Gemini + llm.rb
Improving a similarity search with AI
We replaced a broken similarity search with AI that understands context and intent over specs. Results went from chaos to relevant overnight. [more inside]
Install any ruby version in minutes
3 step process to get you up and running in less than 15 minutes [more inside]
Live tests in Ruby on Rails
Did you know you can execute live tests on your Rails apps? In this blog post I will explore the available tools and the small changes we need to introduce live tests in our flow. [more inside]
User-Specific Content in Turbo Stream Partials
Exploiting the two recent Rails CVE
I wrote a short piece about how the the two recent Rails CVEs could be exploited:
dsa.rb: Practice core dsa in Ruby from the command line
My first open source Ruby tool: [more inside]
*NEW GEM* ActsAsActive: Plug-and-play activity tracking for ActiveRecord
ActsAsActive is a plug-and-play Rails extension that adds activity tracking to any model. It wires a polymorphic association and records Activity rows on the lifecycle events you choose, then surfaces daily counts, streak analytics, and heatmap-friendly data. Works with PostgreSQL or MySQL/SQLite and ships with a metadata column for extra context—plus a namespaced model (ActsAsActive::Activity) and generators so you can set it up in seconds. Feedback and PRs welcome. [more inside]
The Long Game: why Rails survived the hype cycle and what it means for your startup
Just a few years ago, Rails was supposedly “dead.” The framework that once powered 90% of Y Combinator batches had lost favor. Shiny new alternatives took center stage. Rails was declared passé. But now, Rails is thriving. [more inside]
Apple Wallet Passes in Rails Apps
Keeping our users engaged beyond just opening our web application can significantly boost retention and user satisfaction. That’s why integrating with Apple Wallet allows us to put our content directly on users’ lock screens and in their daily workflows. In this article, we will integrate Apple Wallet Passes in Rails to create signed passes that users can add to their phones with a single tap. Full article on our technical blog:
Exploring CVE-2025-55193 - ANSI escape injection in Active Record logging
After last week’s security patches in Rails, I tested the ANSI escape injection vulnerability. I was curious about the damage it can do. [more inside]
Age estimation with llm.rb
This post looks at how we can build a tool that estimates the age of the person in a photo with the llm.rb library. The post demonstrates three key llm.rb features at once – multimodal prompts, image vision and generation, and structured outputs.
Rails Charts now with eCharts v6
got an update, now bundled with the most recent eCharts v6
OasGrape: An Alternative for Generating Your API Documentation in Grape
I introduce a new gem for generate an OAS 3.1 in your Grape APIs:
The RAG pattern in 32 lines of Ruby code
This post introduces the Retrieval Augmented Generation (RAG) pattern in only 32 lines of Ruby code, and includes a live demo.
Upscaling images with AI
Learn how we improved image quality for thousands of boat listings using artificial intelligence, with the objective of improving the user experience and conversion rates. [more inside]
Circuit breakers and Ruby in 2025: don't break your launch
Adopting a circuit breaker pattern from day one? Our new post explains this approach and how it can now fit into Ruby projects of any size. Plus, we showcase a gem to help you contain cascading failures before everything flat lines. [more inside]
Extend ActiveStorage for Ruby on Rails with Custom Previewers
We’ll dive into how ActiveStorage handles uploaded data and how to extend this process in the second part of this two-part series:
A set of useful extensions for RSpec
With you can print logs while running specs, define ENV variables, or change locales, etc. All with meta tags in specs. [more inside]