Class: AbstractInterface::FormBuilders::ThemedFormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Includes:
AbstractFormBuilder
Defined in:
lib/abstract_interface/form_builders/themed_form_builder.rb

Instance Attribute Summary

Attributes included from AbstractFormBuilder

#template

Instance Method Summary collapse

Methods included from AbstractFormBuilder

#field_tag, #line, #line_with_delimiters, #method_missing, #submit

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AbstractInterface::FormBuilders::AbstractFormBuilder

Instance Method Details

#error_messagesObject



34
35
36
37
# File 'lib/abstract_interface/form_builders/themed_form_builder.rb', line 34

def error_messages
  errors = object.errors.on(:base) || []
  custom_error_messages errors
end