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.
Allow ActualDbSchema gem working on projects without git
actual_db_schema v0.8.5 is out with a fix allowing the gem to work without git. More details are in this Reddit post: https://bit.ly/43JUI3h
🚀 Finally here: the alpha release of TrixGenius!
Say hello to AI-powered rich-text editing for your Rails apps! ✨ With just a click, your users can now auto-correct spelling mistakes directly inside the Trix Editor — thanks to the magic of DeepSeek + Hotwire. [more inside]
Rails 8 Assets: Adding a bundled package alongside vanilla setup
If you want to use an npm package that you can’t just pin to the importmap but that needs bundling, do you need to abandon the default Rails asset pipeline? Absolutely not, here’s how you can bundle just one package and keep the rest on vanilla Rails asset pipeline: Rails 8 Assets: Adding a bundled package alongside vanilla setup
🚀 Just published a new update to my gem trix-genius
No more manual wiring or config headaches. With just one command: bash [more inside]
Component design systems for Rails
Have you wondered about component libraries for Rails? I tried to list some popular options and their relation to Rails.
Automatic API Documentation for Rails with OasRails and AI: Fast and Easy|
I just release a blog post showing an easy way to document Rails APIs. Read more here!
Let there be docs! Generating an OpenAPI schema across the Rails stack
In API development, documentation is often something tackled once the code’s written and tested. There’s a growing movement advocating for a doc-first approach, where specifications come before a single line of code. So, when might an implementation-first approach be preferred? [more inside]
Kreds v1 is out
It provides a safer, cleaner interface for accessing Rails credentials with strict error handling, optional fallback to environment variables, and support for environment-specific structures. [more inside]
Boolean vs Datetime
In this episode, we look at refactoring an existing application where it uses a boolean to determine if a post is published or unpublished. However, this feature has its limitations, so we change the functionality to work off of a datetime column instead. https://www.driftingruby.com/episodes/boolean-vs-datetime
Resize Observer API with Stimulus
Occasionally, parts of our application that depend on the size of the screen can break because of the user resizing the browser window. [more inside]
RSpec book update: Testing in isolation with mocks (and friends)
I just shipped a new chapter for the current edition of Everyday Rails Testing with RSpec. In this release, I’ve totally replaced my introduction to testing in isolation with mocks (and stubs, and fakes, and spies, and doubles, oh my). My beliefs on when and how to mock have changed a lot since the last major release of the book, and this updated chapter reflect my newer opinions. I hope you find it useful!
Reject Nested Attributes in Rails
A detailed write-up on using reject_if
with accepts_nested_attributes_for
to make nested associations optional in Rails forms https://danielabaron.me/blog/rails-reject-nested-attributes/
Running ruby on jupyter notebooks
You’ve maybe heard about Jupyter notebooks - an awesome web application which allows you to run python code in a browser. There are another similar project - Livebook which allow running Elixir code in browser. [more inside]
Heroku SSL Revisited (2025 Edition)
I thought I knew the “right” way to set up SSL with Heroku and a CDN like Cloudflare, and I was wrong. Here’s what I learned.
Three videos about Data objects in Ruby
I recorded three videos (one each week) about Using Data objects in Ruby and published them in a playlist. They correspond to the articles I published so far about this topic.
Beyond translations in Stimulus: formatting dates, time and currency
Exploring JavaScript’s Intl object that provides language-sensitive string comparison, number formatting etc. And creating a custom class for a better DX: https://railsdesigner.com/beyond-translations-in-stimulus/ [more inside]
More about how to create a Data class in Ruby
I wrote a short exploration about How to create Data classes in Ruby using block definition or inheritance definition and showed the differences between them
✨ Generate PDFs in pure Ruby using Chrome — no Selenium, Puppeteer, or Node required
Just published a new proof of concept gem: bidi2pdf — a pure Ruby tool for generating high-quality PDFs using Chrome’s new WebDriver BiDi protocol. 🛠What it does: [more inside]
Demystifying Rails Generators: What I Wish I Knew
Rails generators, and their underlying Thor integration, can be surprisingly opaque — even for experienced developers. I recently found myself deep in this rabbit hole, frustrated by the lack of clear documentation and practical guidance. So I wrote the article I wish I’d found back then. If you’ve ever struggled to understand or customize Rails generators, this guide breaks it down in a way that’s approachable and practical. [more inside]
Migrate from importmap to esbuild
Importmap is a great tool, but unfortunately it isn’t a silver bullet for everything. I decided to move away from importmap to esbuild for one of my projects because of it was so tricky to setup it to use with flowbite. [more inside]
Kamal Deployment: The Newest Form of Self-Torture
Struggling with Kamal 2 for Rails deployments? This detailed guide walks through common pitfalls and their solutions when setting up Kamal with Rails 8, Solid Stack, and multi-environment configurations. Learn practical workarounds for Docker permissions, credentials management, and Shrine file uploads that will save you days of frustration. [more inside]