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.
Today
Tests That Survive Change
How to write Ruby tests that survive refactoring: what to test, what to ignore, and how to keep doubles from going stale. [more inside]
Pterocos - Free online editor for Ruby (plus Python, SQL, Lua)
A browser-based editor that runs Ruby scripts instantly. [No installation, no account]. Perfect for quick prototyping and learning. Also supports Python, SQL (SQLite/DuckDB), Lua, and web code. [more inside]
Rails Health Check
A Rails engine (just added Rack support) that adds production-grade health check endpoints to any Rails app. Goes well beyond the built-in /up endpoint with 11 built-in checks, parallel execution, structured JSON responses, Prometheus metrics, and a clean configuration DSL.
RubyConf Austria and the future of Ruby conferences
I attended RubyConf Austria in Vienna. A first day AI panel left me wondering: if programming languages are becoming irrelevant, will Ruby conferences still matter? Then, the next day, I noticed what to me looked like clues pointing to an answer: RubyConf Austria and the future of Ruby conferences
Better guides. Better framework.
From Active Job and Action Cable to PostgreSQL improvements and Ractor safety, here’s a quick look at this week’s Rails updates. [more inside]
Demystifying Rails Magic: How Autoloading Actually Works
I remember when I first started learning Ruby outside of Rails. I was building a small script, and my… [more inside]
gem ActiveHarness to build advanced AI pipelines
ActiveHarness is being under active development and recently new README and a bunch of new documentation pages were added and updated. You are welcome to check and leave you feedback or ideas in Issues on GH. Happy coding!
A Rails model is a miniature language.
Associations, validations, scopes, enums, callbacks… All powered by Ruby methods. #Ruby #Rails #ActiveRecord [more inside]
Ruby Reactor 0.4.0: Interrupts, Dashboard, and Coordination Primitives
You’ve built a checkout flow. The user submits their order, you reserve inventory, charge their card, and generate a shipping label. Everything’s a Sidekiq job. It works. [more inside]
Stripe-Style IDs in Rails: A Guide to the make_id Gem
If you have ever used the Stripe API, you’ve noticed their IDs look awesome. Instead of a random… [more inside]
Rapid UI Development: Top 4 Component Kits for Solo Rails Devs
I remember the days when building a professional-looking dashboard in Rails meant spending a whole… [more inside]
Andy's Laws of AI in Software Engineering
Andy’s Laws of AI in Software Engineering:
How to Leverage PurgeCSS in Your Rails App for Faster Stylesheets
It’s common for Rails applications to serve massive CSS files filled with unused Bootstrap, Tailwind, or custom utility classes as projects grow. [more inside]
AI Document assistant
AI Document Assistants are transforming the way we handle information. By automating repetitive tasks and providing intelligent insights, they make document management more efficient and less time-consuming.
Polling for New Records
Websockets are great, but they are not always the right approach. In this episode, we will look at implementing a long polling for new records.
Beyond Mocked Payloads: End-to-End Stripe Webhook Testing
If you’ve ever wondered whether your Stripe webhook handler actually works end-to-end (not just with mocked payloads), this walks through using Stripe Test Clocks and the Stripe CLI to simulate the full payment failure retry sequence locally, including a race condition that only showed up this way
HexaPDF 1.9.0 released, with support for HarfBuzz based text shaping
The latest release 1.9.0 of HexaPDF supports HarfBuzz based text shaping. Now complex scripts are rendered correctly. [more inside]
Sessions Are Not Server Memory
Rails makes session[:user_id] = 42 feel like a hash write, but CookieStore serializes and encrypts session data into a browser cookie. This article traces that pipeline, the 4KB cookie limit, and why sessions should carry identity instead of application state. [more inside]
Rails GuardDog: Advanced Security Scanner for Rails
Rails GuardDog is a new open-source security scanner for Rails that goes beyond tools like Brakeman. [more inside]
RubyConf has joined RailsConf & RailsWorld as an exclusive discriminatory conference
RubyConf has joined RailsConf & RailsWorld as another exclusive discriminatory unexcellent conference.
I gave a generic LLM access to Ruby documentation through RAG.
The hallucinations didn’t disappear. They changed. The most interesting failures happened when the model had the correct context and still answered incorrectly. [more inside]