constraint-validation-example

Expand History Expand History
Collapse History Collapse History

Abstract Validation Message ID generation

Push the concept of ValidationMessageFormBuilder#field_id further, and declare validation_message_id as a specialized version.

For fields that have no errors for the attribute, return nil.

For fields that have at least one error for the attribute, return the DOM id.