Sha256: a1c1424c765d269db723274e0cc9b143b496fc271a48754dd5178c12d25baef8
Contents?: true
Size: 931 Bytes
Versions: 9
Compression:
Stored size: 931 Bytes
Contents
## # Configures Motr, including extensions/modules. # See information below for more info # Motr.configure do |config| # => Forms configuration # Configures various options for the form builder # config.forms.do |forms| # The html class to be used when wrapping a field with an error # forms.error_class = 'field_with_errors' # # The html class to be added to the "message" on each field # forms.message_error_class = 'errors_for_field' # # The ERB based error template to be used when wrapping an errored field # It provides the methods "error_class", "message_error_class", and "messages" (array of errors) # forms.error_template = %{ <span class="<%= error_class %>"><%= html_tag %><span class="<%= message_error_class %>"><%= [messages].flatten.join(",") %></span>} # # The default form builder to use site-wide # forms.default_builder = Motr::Forms::Builder # # end end
Version data entries
9 entries across 9 versions & 1 rubygems