Module: KisoThemes::SimpleForm::ErrorTag
- Defined in:
- lib/kiso_themes/extensions/simple_form/errors_component.rb
Overview
Custom SimpleForm component to render errors with a fancy icon.
Instance Method Summary collapse
Instance Method Details
#error_tag(wrapper_options = nil) ⇒ Object
5 6 7 8 |
# File 'lib/kiso_themes/extensions/simple_form/errors_component.rb', line 5 def error_tag( = nil) return unless has_errors? template.content_tag(:span, template.fa_icon_tag("remove") + " " + error_text, :class => "help-block") end |