app/views/headmin/forms/_validation.html.erb in headmin-0.3.1 vs app/views/headmin/forms/_validation.html.erb in headmin-0.3.2

- old
+ new

@@ -9,10 +9,10 @@ # 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.try(attribute)&.join(', ') + message = form.object&.errors[attribute]&.join(', ') %> <% if show_feedback %> <div class="invalid-feedback" id="<%= id %>"> <%= message %> \ No newline at end of file