# The joy of Inertia Rails: painting your own with 50 happy little lines

DevFeed: [The joy of Inertia Rails: painting your own with 50 happy little lines](<https://devfeed.tech/articles/the-joy-of-inertia-rails-painting-your-own-with-50-happy-little-lines-19791.md>)

Original publisher: [Read original article](<https://evilmartians.com/chronicles/the-joy-of-inertia-rails-painting-your-own-with-50-happy-little-lines>)

Author: Travis Turner (richardturner@evilmartians.com)

Published: 2026-07-14T00:00:00Z

Content type: article

Language: en

Sources: [Evil Martians](<https://devfeed.tech/sources/evil-martians.md>)

Topics: [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>), [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [Web](<https://devfeed.tech/topics/web.md>), [Hotwire](<https://devfeed.tech/topics/hotwire.md>), [Svelte](<https://devfeed.tech/topics/svelte.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [client](<https://devfeed.tech/tags/client.md>), [framework](<https://devfeed.tech/tags/framework.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [hotwire](<https://devfeed.tech/tags/hotwire.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [json](<https://devfeed.tech/tags/json.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [rails](<https://devfeed.tech/tags/rails.md>), [react](<https://devfeed.tech/tags/react.md>), [server](<https://devfeed.tech/tags/server.md>)

## AI overview

The excerpt frames Inertia as a small protocol that keeps Rails in charge of routing and server-side page decisions while a JavaScript client renders pages. It contrasts this with Turbolinks: instead of fetching HTML on later visits, Inertia sends JSON page data. The post says it rebuilds the protocol in a real Rails app using a 50-line React client and a 16-line Rails renderer, then audits what the gem adds. Its argument is to assess Inertia by the simplicity of its wire format rather than by a feature list. The excerpt begins from Turbolinks' approach--intercept clicks, fetch a page, swap content, and update the URL without a full browser navigation--but cuts off before explaining the implementation or gem audit.

## Source excerpt

Inertia is Turbolinks with one twist: render JSON instead of HTML on the second visit. We rebuild the whole protocol on a real Rails app with a 50-line client and a 16-line server, then audit what the real gem adds on top.