Access Bearer Tokens Directly from the Request in Ruby on Rails

The new bearer_token method on the Request object is a nice addition to Rails. It removes boilerplate code and simplifies bearer token extraction. All Rails apps can now access bearer tokens the same way without having to write custom token extraction logic every time and worrying about edge cases.

#Ruby on Rails#Authentication#Backend
Added: 30 Dec 2025
Your legacy software is a ticking bomb

Tick tock… Act now, or this mess might blow up in your face.

#Consulting
Added: 30 Dec 2025
Ruby at the Front Line of Disaster Prevention

Ruby at the Front Line of Disaster Prevention December 26, 2025 How Tokyo Gas Uses Ruby to Protect Millions of People During Earthquakes Based on the RubyWorld Conference 2025 presentation by Maika…

#Ruby
Added: 27 Dec 2025
Tricks to work around nested form elements, for Rails | Island94.org

Tricks to work around nested form elements, for Rails

#Ruby on Rails#HTML
Added: 21 Dec 2025
My HTML Web Component boilerplate for 2026

My digital garden has an entire section with copy/paste code snippets and boilerplates. I use these nearly every day when writing code. It helps me start working faster, and saves me from having to rewrite the same code over-and-over again. I created web component boilerplate years ago. Since then, my approach to writing web component has changed quite a bit. I just updated the boilerplate, adding everything I’ve learned from working on Kelp UI.

#Frontend#HTML
Added: 19 Dec 2025
Add snow to your app with Stimulus

Let’s build a fun snow effect for your Rails app using a single Stimulus controller.

#Ruby on Rails#Frontend#Design
Added: 19 Dec 2025
Hotwire Native deep dive: Native Polish

Practical ways to make your Hotwire Native app feel right at home on iOS and Android.

#Ruby on Rails#Authentication#HOTWire#Native
Added: 19 Dec 2025
The Arrange/Act/Assert pattern

Organizing tests for readability.

#Ruby on Rails#testing
Added: 16 Dec 2025
Beautiful Rails confirmation dialogs (with zero JavaScript)

Upgrading the default data-turbo-confirm with a beautiful, native HTML dialog with animations

#Ruby on Rails#Tutorial
Added: 15 Dec 2025
Postgres Scan Types in EXPLAIN Plans | Crunchy Data Blog

What is a sequential scan vs index scan vs parallel scan .... and what is a bitmap heap scan? Postgres scan types explained and diagrammed.

#postgres#database
Added: 12 Dec 2025
Lessons learned from studying Fizzy test suite

The Fizzy application is a new play on Kanban board and project management. It has a comprehensive test suite focused mostly on unit and integration tests, althought other types of test are also present. The test suite is well-organized and follows Rails conventions with some application-specific patterns for multi-tenancy and UUID handling. Can we find more than that?

#Ruby on Rails
Added: 11 Dec 2025
Making Rails Global IDs safer

The new LLM world is very exciting, and I try to experiment with the new tools when I can. This includes building agentic applications, one of which is my personal accounting and invoicing tool - that I wrote about previously As part of that effort I started experimenting with RubyLLM to have some view into items in my system. And while I have used a neat pattern for referencing objects in the application from the tool calls - the Rails Global ID system - it turned out to be quite treacherous. So, let’s have a look at where GlobalID may bite you, and examine alternatives and tweaks we can do. What are Rails GIDs? The Rails global IDs (“GIDs”) are string handles to a particular model in a Rails application. Think of it like a model URL. They usually have the form of gid://awesome-app/Post/32. That comprises: The name of your app (roughly what you passed in when doing rails new) The class name of the model The primary key of the model You can grab a model in your application and get a global ID for it: moneymaker(dev):001> Invoice.last.to_global_id Invoice Load (0.3ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1 /*application='Moneymaker'*/ => #<GlobalID:0x00000001415978a0 @uri=#<URI::GID gid://moneymaker/Invoice/161>> Rails uses those GIDs primarily in ActiveJob serialization. When you do DebitFundsJob.perform_later(customer) where the customer is your Customer model object which is stored in the DB, ActiveJob won’t serialize its attributes but instead serialize it as a “handle” - the global ID. When your job gets deserialized from the queue, the global ID is going to get resolved into a SELECT and your perform method will get the resulting Customer model as argument. All very neat. And dangerous, sometimes - once LLMs become involved.

#AI#Ruby on Rails
Added: 11 Dec 2025
How to Remove Secrets from Git History Safely

Accidentally committed secrets to Git? Learn how to safely and permanently remove sensitive data from your Git history using git-filter-repo — the modern,...

#DevOps
Added: 10 Dec 2025
Create a Markdown Editor in Ruby on Rails | AppSignal Blog

In this post, we'll build a Markdown editor using Rails.

#Ruby on Rails#Tutorial#Frontend
Added: 10 Dec 2025
Turn Any Idea Into a Validated MVP

A step-by-step path to validate your idea fast by defining the problem, testing assumptions, prototyping the critical flow, and shaping a focused MVP you can learn from.

#Product Development
Added: 9 Dec 2025
Value Objects in Ruby: The Idiomatic Way

Master Value Objects in Ruby using the modern Data.define class. Learn about immutability, value equality, and how to eliminate boilerplate code for cleaner, safer domain modeling.

#Ruby
Added: 9 Dec 2025
Logging outbound emails with ActionMailer in Rails | Storm Consultancy - Your Digital Technology Agency

A guide to using the ActionMailer after_deliver callback to log emails sent from your Ruby on Rails application

#Ruby on Rails
Added: 9 Dec 2025

This is my personal site, where I write about Ruby, programming, and any of my varied fascinations.

#CSS#Design
Added: 9 Dec 2025
đź§  10 uncommon but powerful Ruby & Rails Methods.

As Ruby and Rails developers, we often rely on the same familiar set of methods to get things done. The same set of operations are more or…

#Ruby on Rails
Added: 7 Dec 2025
Vanilla CSS is all you need

The post stuck with me. Over the past year and a half, 37signals has released two more products (Writebook and Fizzy) built on the same nobuild philosophy. I wanted to know if these patterns held up. Had they evolved?

#Ruby on Rails#CSS
Added: 5 Dec 2025
Building optimistic UI in Rails (and learn custom elements)

Learn how custom elements work in Rails by building an optimistic form. From simple counters to instant UI updates, understand when to use custom elements over Stimulus controllers.

#Javascript#Ruby on Rails#Frontend
Added: 5 Dec 2025
Why I believe prototyping in code beats everything else

A code prototype changes everything. When you prototype in code, the thing you are testing is real. It works in the browser. It works on any device. It responds to real-world variables.

#Productivity#Product Development
Added: 4 Dec 2025
How To Rev Up Your Rails Development with MCP

Shipping new features on legacy Rails applications requires deep codebase context. The rails-mcp-server gem closes the gap between AI agents and your Rails projects, enabling more relevant code analysis and context aware refactoring suggestions. Whether you're dealing with tech debt in a brownfield application or building new greenfield features, this tool can help you move faster with confidence.

#AI#Ruby on Rails
Added: 1 Dec 2025
Single Responsibility Principle

Should a Ruby class do just one thing? Explore the Single Responsibility Principle, cohesion, and when to split classes through practical examples.

#System design
Added: 1 Dec 2025
First Previous Next Last