Rails Error Prevention
Installation
SKILL.md
Rails Error Prevention Skill
This skill provides preventative checklists and error patterns for common Rails mistakes. Review relevant sections BEFORE writing code.
When to Use This Skill
- Before creating ViewComponents
- Before writing ActiveRecord queries with GROUP BY or joins
- Before writing view code that calls component methods
- Before creating controller actions
- When debugging undefined method errors
- When debugging template not found errors
- When debugging ActiveRecord grouping errors
Critical Rule: Method Exposure Verification
This is the #1 cause of runtime errors in Rails applications.