Module: Motr::Forms

Defined in:
lib/motr/forms.rb,
lib/motr/forms/base.rb,
lib/motr/forms/builder.rb,
lib/motr/forms/helpers.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Helpers Classes: Base, Builder

Constant Summary collapse

@@error_class =
'field_with_errors'
@@message_error_class =
'errors_for_field'
@@error_template =
%{
<span class="<%= error_class %>">
     <%= html_tag %>
     <span class="<%= message_error_class %>"><%= [messages].flatten.join(",") %></span>
</span>}
@@default_builder =
Motr::Forms::Builder
@@field_error_proc =
lambda{ |html_tag, instance_tag| html_tag }