rails-helpers

Installation
SKILL.md

Rails Helpers

Organization

  • Keep helpers focused on specific domains (navigation, styling, forms, media)
  • Use descriptive method names
  • Group related functionality together
  • Avoid business logic in helpers — presentation only

Module Structure

  • One module per concern; match file name to module name (Zeitwerk)
  • Place in app/helpers/ and include automatically by Rails
  • Use content_tag, concat, link_to, etc. from ActionView

Styling and CSS Helpers

  • Use helper methods for conditional CSS classes
  • Support multiple class types and variants
  • Keep class logic maintainable and extensible
  • Use arrays + join(' ') to build class strings
Installs
2
First Seen
May 8, 2026
rails-helpers — gierd-inc/dev-skills