module Formtastic::Inputs::Base::Errors

Public Instance Methods

error_sentence_html() click to toggle source
# File lib/page_record/formtastic.rb, line 8
def error_sentence_html
  extend(PageRecord::Helpers)
  error_class = options[:error_class] || builder.default_inline_error_class
  options = { class: error_class }.merge(error_for(@method))
  template.content_tag(:p, Formtastic::Util.html_safe(errors.to_sentence.html_safe), options)
end