Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Today
Responsive Code Formatting on the Web
We design everything on web mobile-first… except code samples. Here’s a look at three approaches: clever, boring and something in between. A tour of Ruby on WebAssembly, Hotwire with Turbo Frames and something that my colleague Korsi would be proud of. [more inside]
Enforcing rules and managing expectations for AI agents with CI and code review
Why you shouldn’t read your agent’s code until three AI reviewers and CI pass https://rubyonai.com/how-do-you-know-the-software-is-working/
When Your Real-Time Rails Feature Fights Itself
Two phones, same app, same page containing a timer. One shows 4 minutes on the timer. The other shows 9. The server says 4. Refresh the lagging phone and it snaps to 4 instantly–which makes it maddening to debug, because the bug fixes itself the moment you look at it. [more inside]
role_fu gem
A drop-in replacement for abandoned rolify gem with addidional features, such as temporal (expiring) roles, metadata, audit logging, and granular abilities. [more inside]
Claude Code
In this episode, we look at how to use Claude Code to assist us in developing Rails applications. This is not about vibe coding, but using tools to assist our development efforts. https://www.driftingruby.com/episodes/claude-code
Ruby Price objects for SaaS websites
https://beautifulruby.com/code/superfeature-price as an overview, with code and a video, on how I made a Price object to make it easier to work with plan tables, upsells, discount notices, etc. on Rails SaaS websites.
A New Cop in Town: rubocop-rspec_parity
https://dev.to/povilasjurcys/a-new-cop-in-town-rubocop-rspecparity-e20 instant feedback on test coverage gaps, without relying on code coverage tools 🤯
New release of ActionDbSchema: DB storage adapter
In the new release of ActionDbSchema (v0.9.0) a DB adapter to persist all run migrations, keeping a full migration history. This change makes the gem useful across all environments, including those that don’t allow filesystem writes (Docker, Heroku, etc.). [more inside]
The single most important thing that made me believe AI coding could work
This is how I managed to get Claude to follow Rails conventions using pre-edit hooks, which reduced my frustration. This gave me the strength to keep going and continue tweaking my AI agent setup. [more inside]
The Ruby AI Newsletter
The latest edition of Ruby AI News is here! This edition features tons of content, articles, and open source releases. The top stories feature a look at the big year ahead for RubyLLM, with library updates, a maturing ecosystem, and an upcoming workshop on the Introduction to Generative AI Programming with RubyLLM. Check it out and subscribe now: [more inside]
How to build a Copilot agent that fixes Rails errors
Production debugging with AI agents has really improved my workflow lately. Here’s how to automate fixing Rails bugs on GitHub.com. [more inside]
If Rails Was Designed Today: The Operational Monolith
The article explores what changes when you treat concurrency, background execution, and observability as framework responsibilities rather than integration problems. [more inside]
The Ruby Users Forum Is Now Live
We’re excited to announce that the Ruby Users Forum is officially live. [more inside]
How I Actually Use AI to Write Ruby on Rails Code
Context is everything when coding with AI. [more inside]