# frozen_string_literal: true module Formtastic module Helpers module ErrorsHelper include Formtastic::Helpers::FileColumnDetection include Formtastic::Helpers::Reflection include Formtastic::LocalizedString INLINE_ERROR_TYPES = [:sentence, :list, :first] # Generates an unordered list of error messages on the base object and optionally for a given # set of named attribute. This is idea for rendering a block of error messages at the top of # the form for hidden/special/virtual attributes (the Paperclip Rails plugin does this), or # errors on the base model. # # A hash can be used as the last set of arguments to pass HTML attributes to the `