Posts

17 posts on Ruby on Rails, Stimulus, Hotwire, and web development.

Adding Ransack Search & Pagination to ResourceController
January 15, 2026 rails

Extend ResourceController with Ransack query building and Pagy pagination so every index page gets search and pagination for free.

Building a ResourceController in Rails
November 12, 2025 rails

Extract repetitive CRUD logic into a base ResourceController that handles index, show, new, create, edit, update, and destroy for any model.

Formatting Table Data with Rails Decorators
August 20, 2025 rails

Use plain Ruby decorator objects to format model data for Tabulator tables, keeping controllers thin and formatting logic testable.

Integrating Tabulator with Stimulus
May 8, 2025 rails stimulus

Wrap the Tabulator.js table library in a Stimulus controller hierarchy so you can drop interactive tables into any Rails view with minimal configuration.

What I Learned Replacing a React SPA with Hotwire
January 22, 2025 rails hotwire

Lessons from replacing a React SPA with Rails and Hotwire — simpler tooling, faster deploys, and less code.

Replacing jQuery with Stimulus
September 18, 2024 rails stimulus

A practical walkthrough of migrating jQuery patterns to Stimulus controllers in a Rails app.

Building a Date Picker Component with Flatpickr and Stimulus
June 5, 2024 rails stimulus

Wrap Flatpickr in a Rails partial + Stimulus controller so you get a consistent date picker that submits dates in the format Rails expects.

Non-Geographic Maps with Leaflet and Image Pyramiding
April 25, 2024 rails stimulus

Use Leaflet's CRS.Simple to display large images as zoomable, pannable maps — with a Ruby script to generate image tile pyramids.

Wrapping Leaflet in a Stimulus Controller
March 20, 2024 rails stimulus

Wrap Leaflet.js in a Stimulus controller so you can drop interactive maps into any Rails view with markers driven by data attributes.

Rails Partials + Stimulus Controllers as Reusable Components
February 14, 2024 rails stimulus

Pair a Rails partial with a Stimulus controller using a simple naming convention to build reusable UI components without extra dependencies.

About

I’m Martin Jarosinski, a full-stack developer in Minneapolis. I write about Ruby on Rails, Stimulus, Hotwire, and practical patterns for building web applications.

Let’s work together! Tell Me About Your Project