What problem does it solve?
This Skill simplifies the creation of complex forms in Rails applications, especially those involving multiple models, nested data, or virtual attributes, ensuring data integrity and a smooth user experience.
Core Features & Use Cases
- Multi-Model Forms: Handle forms that create or update several database records simultaneously.
- Nested Forms: Manage forms with arrays of associated records (e.g., an entity with multiple items).
- Virtual Attributes: Incorporate non-persisted fields for calculations or user input.
- Validation & Type Coercion: Ensures data is clean and correct before persistence.
- RSpec Testing: Automatically generates comprehensive tests for all form objects.
- Use Case: Building a user registration form that creates a
User record, a Profile record, and sends a welcome email, all within a single form submission.
Quick Start
Use the form-agent skill to create a new EntityRegistrationForm with name, description, and owner ID attributes.