rails-37-style-core-rails-routing
CommunityRails routing: CRUD, resources, and clean URLs.
AuthorChwistophe
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a clear, opinionated approach to Rails routing, ensuring that your application's URLs are RESTful, predictable, and easy to manage, aligning with the 37signals philosophy.
Core Features & Use Cases
- Resource-Based Routing: Emphasizes using standard RESTful resources and CRUD verbs.
- Custom Actions as Resources: Transforms non-CRUD actions into dedicated resources (e.g.,
resource :closureinstead ofpost :close). - Shallow Nesting: Simplifies nested routes to prevent overly long URL paths.
- Singular Resources: Correctly uses
resourcefor one-to-one relationships. - Module Scoping & Namespacing: Organizes controllers logically without affecting URLs.
resolveHelper: Enables correct polymorphic URL generation for nested resources.- API Design: Advocates for using the same controllers for HTML and JSON responses via
respond_to.
Quick Start
Configure your Rails routes to use resource-based patterns and shallow nesting for better organization.
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-37-style-core-rails-routing Download link: https://github.com/Chwistophe/agent-skills-unofficial-37-signals-rails-way-fizzy/archive/main.zip#rails-37-style-core-rails-routing 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.