rails-37-style-core-rails-controllers
CommunityThin controllers, rich models, composable concerns
AuthorChwistophe
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of organizing Rails controller logic by promoting a pattern of thin controllers, rich models, and reusable controller concerns, leading to more maintainable and scalable applications.
Core Features & Use Cases
- Thin Controllers: Ensures controllers act as orchestrators, delegating business logic to models.
- Rich Models: Encourages placing complex logic within models for better organization and reusability.
- Composable Concerns: Provides a catalog of reusable controller concerns for common tasks like resource scoping, request context, filtering, and security.
- Use Case: When building a new feature that involves nested resources (e.g., comments on a card), you can include the
CardScopedconcern to automatically fetch the@cardobject and define standard actions likecreateanddestroywith minimal controller code.
Quick Start
Use the rails-37-style-core-rails-controllers skill to understand how to implement thin controllers with reusable concerns.
Dependency Matrix
Required Modules
None requiredComponents
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: rails-37-style-core-rails-controllers Download link: https://github.com/Chwistophe/agent-skills-unofficial-37-signals-rails-way-fizzy/archive/main.zip#rails-37-style-core-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.