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.
Ruby/Rails upgrade step-by-step
Recently, I’ve upgraded Ruby/Rails in a project. [more inside]
🚀 New Article: Boosting Reactive Programming with JIT – Reactive Ruby in Action
Have you ever faced performance issues while working with reactive systems? [more inside]
🔡 Ever wondered how Ruby translates numbers into characters—or even emojis?
In my latest article, I explore how Ruby’s .chr and .ord methods reveal the hidden logic behind ASCII, accented characters like “á”, and even emojis like “😀”. From raw bytes to multi-byte UTF-8 encoding, it’s a fascinating journey into how characters really work in Ruby. [more inside]
🚀 Keep your Ruby projects secure and up-to-date effortlessly! 🚀
Managing dependencies can be a headache — outdated or vulnerable gems put your app at risk. That’s why I wrote about Dependabot, the awesome GitHub tool that automatically scans, updates, and protects your dependencies. [more inside]
Introducing Veri – Minimal Cookie-Based Authentication for Rails
Veri is a new minimalistic authentication framework for Rails built around granular session management. Unlike full-stack solutions, Veri doesn’t impose business logic or provide pre-built views and controllers. It focuses on secure authentication primitives with detailed session control and gives you the building blocks for custom authentication flows. [more inside]
command_mapper-gen 0.1.1 released
command_mapper-gen 0.1.1 has been released with minor --help output parsing bug fixes. [more inside]
Namespaced Pundit Policies Without the Repetition Racket
Tired of repeating super([:namespace, record]) in every controller when using namespaced Pundit policies? This post shows how to wrap that logic in a reusable concern for cleaner, more maintainable Rails code. One line to include, no more bracket spam. [more inside]
The History of Ruby on Rails: Code, Convention, and a Little Rebellion
As we say in Brazil: “To Remember is to Relive”, and with the last Rails Conf approaching, nothing better than taking some time to give in to nostalgia and look back on the history of the most relevant Ruby Framework to date: Ruby on Rails. Read more
The Hotwire-Rails summit, or interactive multi-step forms at peak UX
Picture this: one day your product, which was built with Ruby on Rails in a canonical HTML-first (Hotwire) fashion, gets an “off-world” feature request, namely, building a highly-customizable and amazingly-interactive user interface. You stare at Figma mockups scratching your head and mulling an unspeakable question: “Is the Renaissance at an end? Should we reach for React now?” Before you abandon ship, read the tips and tricks we devised while building a sophisticated multi-step form that rivals any SPA experience! The Hotwire-Rails summit, or interactive multi-step forms at peak UX
🚀 SOLID vs OOP in Ruby: Are We Just Repackaging the Same Ideas?
I’ve been reflecting on how often we see “new” principles like SOLID pop up in technical interviews and documentation. But when you dig into the details — especially in Ruby — many of these ideas are already part of the classic OOP toolbox. [more inside]
Adding llms.txt to a Rails application
Large Language Models are everywhere and are getting better at understanding the web almost in real time. However, because of the size of their context windows, they might miss key information about websites amidst ads, scripts, banners, or other irrelevant content that isn’t about the actual information itself. That’s where the llms.txt file plays a role: it allows us to have a compressed version of our site or pages of our site in a format that LLMs easily understand: Markdown. In this article, we will learn how to add a llms.txt file to a Rails application and some best practices. [more inside]
Versioning API requests
Learn how to handle API request versioning in Rails without duplicating controllers, using a schema-based approach that supports OpenAPI documentation and seamlessly maps external API structures to internal models. [more inside]
🚿 Streaming CSV Data: Line-by-Line Processing Like Draining a Tank
Ever tried to drain a giant tank through a hose… and instead of water, what comes out are endless lines of CSV — fields, commas, and all? That’s exactly how it feels to stream CSV data in real-world systems. [more inside]
Measure your code with ease
with this gem you can measure duration of your code with one line of code. Simplified and better version of something like Time.now - start.
Introducing Herb Language Server and Visual Studio Code Extension
As a next step for Herb, I’m happy to share that I’ve just released the first version of the Herb Language Server along with a Visual Studio Code extension. [more inside]
ActiveRecord::DuckDB Adapter
DuckDB is taking the world by storm with its lightweight database engine and its massive capabilities (its fast, extensible, has geospatial and analytical capabilities). I just released an early stage version of an ActiveRecord adapter allowing it to be used with Rails. [more inside]
🚨 Rails Devs: Don’t Let N+1 Kill Your App's Performance!
Yesterday, I faced a technical interview that reminded me how easy it is to fumble a well-known topic under pressure — in my case, the infamous N+1 query problem in Ruby on Rails. [more inside]
Introducing OpalStimulus! 🎉
Have you ever dreamed of being able to write your Stimulus controllers in Ruby instead of JavaScript? Here’s OpalStimulus, a Stimulusjs wrapper for Opal, with a Rails installer. [more inside]
My first approach to middleware in Rails 🧠
Ever wondered how Rails processes requests before they hit your controller? In this article, I explore Rack middleware — a powerful yet often overlooked part of the Rails stack. [more inside]
A Deep Dive into Solid Queue for Ruby on Rails
In the second part of our series, let’s dive deeper into some of Solid Queue’s more advanced features:
📘 Conventions and APIs in Ruby on Rails — for Everyone
If you’re building APIs with Rails or just starting to explore backend development, this article is for you. [more inside]
Grepfruit 3.0.0 Released
Just released version 3.0.0 of Grepfruit, a Ruby gem for searching text patterns in files with enhanced output. [more inside]
Introducing OasHanami: Generate OpenAPI Docs for Hanami APIs
I just released a version of OasHanami, a tool for documenting APIs built with Hanami using YARD tags. It easily generates an OAS file and displays it with RapiDoc for interactive documentation. It relies on OasCore https://github.com/a-chacon/oas_core. [more inside]