action-controller

Official

Master Rails controllers for robust apps.

AuthorThinkOodle
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides expert guidance for writing correct, secure, and idiomatic Rails controllers, addressing common pitfalls like parameter permitting and callback ordering.

Core Features & Use Cases

  • Secure Parameter Handling: Safely permit nested parameters to prevent mass assignment vulnerabilities.
  • Efficient Callback Management: Structure before_action, after_action, and around_action for clear control flow.
  • Response Rendering & Redirection: Implement correct rendering, redirects, and flash messages, especially for Turbo.
  • Use Case: When building a new feature that involves user input via a form, use this Skill to ensure all parameters are securely permitted before they reach your models, and set up appropriate callbacks for authentication and authorization.

Quick Start

Use the action-controller skill to define a new create action for the Article model, ensuring strong parameters are used.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: action-controller
Download link: https://github.com/ThinkOodle/rails-skills/archive/main.zip#action-controller

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.