rails-controllers
CommunityBuild RESTful Rails controllers with confidence.
AuthorShoebtamboli
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides concise, pragmatic guidance for designing, implementing, and maintaining Rails controller actions and routing so developers avoid inconsistent endpoints, insecure parameter handling, and fragile response behavior.
Core Features & Use Cases
- RESTful Controller Patterns: Clear conventions for resourceful routes, member and collection actions, shallow nesting, and namespacing.
- Action Structure & Filters: Recommendations for before_action/after_action usage, controller concerns, and keeping controllers thin by delegating business logic to services or models.
- Request Handling & Responses: Best practices for strong parameter whitelisting, session and cookie usage, error handling with rescue_from, and responding to HTML and JSON clients.
- Use Case: Refactor a PostsController to follow REST conventions, add strong parameters, authorize edits, and support both HTML views and JSON APIs with proper status codes.
Quick Start
Ask the skill to generate a RESTful PostsController with index, show, create, update, and destroy actions using strong parameters, before_action setup, and HTML/JSON responses.
Dependency Matrix
Required Modules
None requiredComponents
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: rails-controllers Download link: https://github.com/Shoebtamboli/rails_claude_skills/archive/main.zip#rails-controllers Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.