Module: SimpleForm::Components::Errors
Instance Method Summary collapse
- #error ⇒ Object
- #error_html_options ⇒ Object
- #error_method ⇒ Object
- #error_tag ⇒ Object
- #error_text ⇒ Object
Instance Method Details
#error ⇒ Object
6 7 8 |
# File 'lib/simple_form/components/errors.rb', line 6 def error template.content_tag(error_tag, error_text, ) if has_errors? end |
#error_html_options ⇒ Object
22 23 24 |
# File 'lib/simple_form/components/errors.rb', line 22 def (:error, [SimpleForm.error_class]) end |
#error_method ⇒ Object
18 19 20 |
# File 'lib/simple_form/components/errors.rb', line 18 def error_method [:error_method] || SimpleForm.error_method end |
#error_tag ⇒ Object
10 11 12 |
# File 'lib/simple_form/components/errors.rb', line 10 def error_tag [:error_tag] || SimpleForm.error_tag end |
#error_text ⇒ Object
14 15 16 |
# File 'lib/simple_form/components/errors.rb', line 14 def error_text errors.send(error_method) end |