Rechercher

PythonReactSEOPDF
GitHub Skill

rails-forms

Rails form conventions. Use when creating or editing forms in Rails.

manuelmeurer☆ 0 Étoiles du dépôt1 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

Instructions

Rails Forms

Guidelines

  • Inspect existing form patterns in the codebase first.
  • Always use form_with when creating or modifying forms.
  • Use the turbo_data helper for Turbo-related data attributes.
  • For form actions, always use the form_actions component.

Form fields

  • Prefer using the form_field component with the appropriate field type; for hidden fields, use hidden_field instead; use field type :base only in rare cases for custom fields not used elsewhere in the codebase.
  • Add custom labels, hints, and help texts via I18n using the keys expected by the form_field component. Check the component for the expected I18n keys.
  • When adding I18n entries, update all locales in use.

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-01-20
Mise à jour de l’index
2026-01-26
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!