The archive
Writing.
Notes and explorations on Ruby, Rails, and building software.
All posts
Customising Single Table Inheritance mapping in Active Record
Customise how Active Record maps stored STI types to subclasses using sti_class_for and sti_name.
Discovering Turbo 8 Refreshes In Ruby On Rails
Investigate scroll preservation with lazy-loaded Turbo Frames and fix layout shifts with Turbo 8 page refreshes.
So Long Youtube Shorts
Build a tiny browser extension that hides YouTube Shorts and helps reclaim control over browsing time.
The Attribute Builders Gem And Playground
Try the Attribute Builders gem and its interactive playground with Material Design and Shoelace Web Components.
The Potential Birth Of Attribute Builders
Follow a proposal to separate Rails form attribute building from HTML rendering and turn private helpers into a public API.
Deep Dive Action View Form Helpers
Explore how Rails form helpers build attributes and render tags, and why separating those responsibilities matters.
Unlocking The Power Of Forms In Rails
Explore Rails FormBuilder, custom form elements, and the limitations that motivate a more flexible form-building API.
Advanced Layout Rendering In Rails
Design expressive Rails routes and shared layouts with controller inheritance and Turbo Frames.
Layout Rendering In Rails Part 2 Implicit Per Controller Layouts
Build focused car-sharing interfaces with controller-specific Rails layouts and discover the resources behind tabbed views.
Implicit Layout Rendering In Rails
Use Rails conventions and controller inheritance to separate public and authenticated application layouts.