Module: Formtastic::Inputs::Base::Errors
- Defined in:
- lib/locomotive/formtastic.rb
Instance Method Summary collapse
Instance Method Details
#error_sentence_html ⇒ Object
5 6 7 8 9 |
# File 'lib/locomotive/formtastic.rb', line 5 def error_sentence_html error_class = [:error_class] || builder.default_inline_error_class template.content_tag(:div, template.content_tag(:p, Formtastic::Util.html_safe(errors.to_sentence.html_safe)), class: error_class) end |