I have form like this:
我有这样的形式:
<%= simple_form_for @category do |f| %>
<%= f.input :name %>
<%= f.input :description %>
<%= f.input :parent_id, collection: @board.subtree, include_blank: false %>
<%= f.button :submit %>
<% end %>
<%= simpleI have form like this:
我有这样的形式:
<%= simple_form_for @category do |f| %>
<%= f.input :name %>
<%= f.input :description %>
<%= f.input :parent_id, collection: @board.subtree, include_blank: false %>
<%= f.button :submit %>
<% end %>
<%= simple