forked from e621ng/e621ng

Regens simple form config using `rails generate simple_form:install`. Seems to fix #2913 (erroneous minlength validations being enforced as of simple_form 3.4.0).
14 lines
352 B
Plaintext
14 lines
352 B
Plaintext
<%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
|
|
<%%= f.error_notification %>
|
|
|
|
<div class="form-inputs">
|
|
<%- attributes.each do |attribute| -%>
|
|
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
|
|
<%- end -%>
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
<%%= f.button :submit %>
|
|
</div>
|
|
<%% end %>
|