rails-form-objects
CommunityStreamline multi-model forms with Form Objects.
Authornekorush14
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill centralizes complex form handling across multiple models, consolidating validations and business logic into a single form object to keep controllers slim and maintainable.
Core Features & Use Cases
- ActiveModel Integration: Use ActiveModel::Model for validations without persisting a row.
- Single Responsibility: Each form object handles one specific form submission.
- Composition: Coordinate multiple models for multi-model forms.
- Centralized Validation: Form-specific validation logic in one place.
- Testability: Easily unit-test form behavior independently.
Quick Start
Create a form object like UserRegistrationForm and wire it into a controller (e.g., RegistrationsController) to handle multi-model registrations.
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-form-objects Download link: https://github.com/nekorush14/dotfiles/archive/main.zip#rails-form-objects 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.