vanilla-rails-controllers

Community

Enforce resourceful Rails state changes.

AuthorZempTime
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Rails projects often accumulate ad hoc controller actions that mutate model state. This skill advocates treating state transitions as distinct resources, guiding you to extract state logic into resource-based controllers and keep business logic in models.

Core Features & Use Cases

  • Resource-based state changes: convert each state transition (close, archive, publish, assign) into its own controller resource.
  • Clear separation: controllers delegate to well-named model methods, reducing fat controllers and duplicated logic.
  • Consistent routing patterns: use singular or plural resources to represent entering and leaving a state, with straightforward testability.

Quick Start

Define a new state resource for a model (for example, a closure state for a Card), add a matching controller under Cards::ClosuresController, and implement create to enter the state and destroy to leave it by invoking the corresponding model methods.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: vanilla-rails-controllers
Download link: https://github.com/ZempTime/zemptime-marketplace/archive/main.zip#vanilla-rails-controllers

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.