Skill / SKILL.md

Inertia Rails Controllers

inertia-rails/skills

ALWAYS `render inertia: { key: data }` to pass data as props — instance variables are NOT auto-passed (only alba-inertia does that). Rails controller patterns for Inertia.js: render inertia, prop types (defer, optional, merge, scroll), shared data, flash, PRG redirects, validation errors. Use when writing controllers that load data, display records, or serve Inertia responses. CRITICAL: external URLs (Stripe/OAuth) MUST use inertia_location, NEVER redirect_to.
3 views 72 repository stars 0 commentsUpdated Nov 28, 2026
Overview

ALWAYS `render inertia: { key: data }` to pass data as props — instance variables are NOT auto-passed (only alba-inertia does that). Rails controller patterns for Inertia.js: render inertia, prop types (defer, optional, merge, scroll), shared data, flash, PRG redirects, validation errors. Use when writing controllers that load data, display records, or serve Inertia responses. CRITICAL: external URLs (Stripe/OAuth) MUST use inertia_location, NEVER redirect_to.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/inertia-rails/skills' skill-source

Use the complete skill-source/skills/inertia-rails-controllers directory with your client’s skill installer.

  • skills/inertia-rails-controllers

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/inertia-rails-controllers

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
b469890195b26755b5d55e34fef8c7af9b6a4dd2e93ebc776e25c78aab512943
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills