%= form_with model: @section do |form| %> <% if @section.errors.any? %>
Section ID: <%= @section.id ? @section.id : (Section.maximum(:id) ? Section.maximum(:id).next : 1) =%>
<%= form.label :description %>
<%= form.text_area :description %>
<%= form.submit %>
<% end %>