Justin Marsh
justinmarsh.dev
Blog
Resume
Navigate
HomeBlog
Resume

Ruby-on-rails

Thoughts on software engineering, Ruby on Rails, and building better web applications.

Hotwire Turbo Scroll Preservation: Why Your Back Button Forgets Where You Were

January 23, 2026 (1 month ago)

Hotwire Turbo Scroll Preservation: Why Your Back Button Forgets Where You Were

Justin Marsh
Justin Marsh · 5 min · Engineering

Your Rails app scroll position breaks on back button because of one CSS rule. Learn why Turbo only tracks body scroll, and how to fix your layout so users land exactly where they left off.

Building Buttery-Smooth Reorderable Lists with Hotwire and Stimulus

January 22, 2025 (1 years ago)

Building Buttery-Smooth Reorderable Lists with Hotwire and Stimulus

Justin Marsh
Justin Marsh · 16 min · Engineering

Build drag-and-drop reorderable lists that feel native using only Hotwire, Stimulus, and vanilla JavaScript. No React, no external libraries—just 60fps interactions with optimistic UI.

The Complete Guide to Ordering Lists in Rails: From Simple to Spotify-Scale

January 15, 2025 (1 years ago)

The Complete Guide to Ordering Lists in Rails: From Simple to Spotify-Scale

Justin Marsh
Justin Marsh · 14 min · Engineering

Every approach to ordering lists in Rails—from acts_as_list to the array-based pattern Spotify uses. Learn which one fits your use case and avoid the performance traps.

mailMailgithubGitHubxXinstagramInstagram