Sha256: b7ffed5f7c0341ea7c427da427aa77c9ff3fec8f5833f3def1f63923361fed65

Contents?: true

Size: 382 Bytes

Versions: 13

Compression:

Stored size: 382 Bytes

Contents

module Formtastic
  module Inputs
    module Base
      module Errors
        def error_sentence_html
          error_class = options[: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
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
tribeca_cms-0.1.1 lib/locomotive/formtastic.rb
tribeca_cms-2.0.0.rc12 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc12 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc11 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc10 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc9 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc8 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc7 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc6 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc5 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc4 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc2 lib/locomotive/formtastic.rb
locomotive_cms-2.0.0.rc1 lib/locomotive/formtastic.rb