Class: FormErrorsDrop

Inherits:
Liquid::Drop
  • Object
show all
Includes:
Enumerable
Defined in:
app/drops/form_errors_drop.rb

Overview

Represents submission errors on a FormTagDrop

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object

Enumerates the attribute names with errors.

#messagesArray<String>

Returns an Array of Strings representing the errors.

Returns:

  • (Array<String>)

#translated_fieldsHash

Returns a Hash of attribute name to display name.

Returns:

  • (Hash)