Sha256: dc756f13bdc3c3cf475acd71a98e5a1680ebc26b0f4769437439e3b56b0c8389
Contents?: true
Size: 938 Bytes
Versions: 1
Compression:
Stored size: 938 Bytes
Contents
module Motr module Forms autoload :Base, 'motr/forms/base' autoload :Helpers, 'motr/forms/helpers' autoload :Builder, 'motr/forms/builder' # The class to be applied to the wrapper that wraps the entire field mattr_accessor :error_class @@error_class = 'field_with_errors' # The class to be applied to the error message element mattr_accessor :message_error_class @@message_error_class = 'errors_for_field' # An ERB template to be used when rendering a field with errors mattr_accessor :error_template @@error_template = %{ <span class="<%= error_class %>"> <%= html_tag %> <span class="<%= message_error_class %>"><%= [messages].flatten.join(",") %></span> </span>} # Setup the default form builder mattr_accessor :default_builder @@default_builder = Motr::Forms::Builder end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motr-0.0.1 | lib/motr/forms.rb |