Skip to content

Fields with errors #39

@dankimio

Description

@dankimio

Bootstrap provides helper classes for inputs with errors like .has-error or .has-warning. Rails wraps all fields with errors in blocks with .field_with_errors class. There're many options:

  • Extend .field_with_errors class with Bootstrap .has-danger class
  • Provide an initializer via generator that will add .has-danger class to blocks with errors in config.action_view.field_error_proc
  • Add the same configuration option but in a Railtie initializer

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions