Sha256: 3433ea8ee464e27226e0f26d0ff7c5b645691aa99fbc276a2007e9d9d8917e67
Contents?: true
Size: 560 Bytes
Versions: 10
Compression:
Stored size: 560 Bytes
Contents
<% # headmin/forms/validation # # ==== Options # * <tt>form<tt> - Form object # * <tt>attribute<tt> - Name of the attribute of the form model # # ==== Examples # Basic version # <%= render 'headmin/forms/validation', form: form, attribute: attribute %#> show_feedback = form.object && !form_field_valid?(form, attribute) id = form_field_validation_id(form, attribute) message = form.object.errors[attribute].join(', ') %> <% if show_feedback %> <div class="invalid-feedback" id="<%= id %>"> <%= message %> </div> <% end %>
Version data entries
10 entries across 10 versions & 1 rubygems