Draper Decorators

This skill should be used when the user asks to "create a decorator", "write a decorator", "move logic into decorator", "clean logic out of the view", "isn't it decorator logic", "test a decorator", or mentions Draper, keeping views clean, or representation logic in decorators. Should also be used when editing *_decorator.rb files, working in app/decorators/ directory, questioning where formatting methods belong (models vs decorators vs views), or discussing methods like full_name, formatted_*, display_* that don't belong in models. Provides guidance on Draper gem best practices for Rails applications. Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/hoblin--claude-ruby-marketplace--draper-decorators commit fb1a15cf94

Frequently asked questions

npx skillmds@latest add tomevault-io/draper-decorators