%= form_with(model: banal_complex, local: true) do |form| %>
<% if banal_complex.errors.any? %>
<%= pluralize(banal_complex.errors.count, "error") %> prohibited this banal_complex from being saved:
<% banal_complex.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.label :weight %>
<%= form.number_field :weight %>
<%= form.label :parent_id %>
<%= form.number_field :parent_id %>
<%= form.label :name %>
<%= form.text_field :name %>
<%= form.submit %>
<% end %>