What problem does it solve?
Rails view patterns are frequently duplicated and inconsistently implemented, leading to accessibility gaps and maintenance headaches. This Skill provides a structured approach for building accessible, maintainable Rails views using patterns for partials, helpers, forms, and layouts.
Core Features & Use Cases
- DRY views: reusable partials and helpers reduce duplication and improve consistency.
- Accessibility as a default: enforces WCAG 2.1 AA-compliant markup, proper ARIA usage, and semantic HTML.
- Nested forms and layouts: guidance for has_many forms, nested_fields, and robust layout composition across Rails apps.
- Use Case: refactor a complex form with multiple nested associations into clear, accessible components.
Quick Start
Use the rails-ai:views skill to generate accessible view scaffolds for a new resource (e.g., BlogPost) including partials, helpers, and forms.