Class: Phlexi::Form::Components::Error

Inherits:
Base
  • Object
show all
Defined in:
lib/phlexi/form/components/error.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #field

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Phlexi::Form::Components::Base

Instance Method Details

#view_templateObject



7
8
9
10
11
# File 'lib/phlexi/form/components/error.rb', line 7

def view_template
  p(**attributes) do
    field.error
  end
end