Module: Formtastic::Inputs::Base::Errors

Defined in:
lib/locomotive/formtastic.rb

Instance Method Summary collapse

Instance Method Details

#error_sentence_htmlObject



5
6
7
8
9
# File 'lib/locomotive/formtastic.rb', line 5

def error_sentence_html
  error_class = options[:error_class] || builder.default_inline_error_class
  template.(:div,
    template.(:p, Formtastic::Util.html_safe(errors.to_sentence.html_safe)), class: error_class)
end