%= simple_form_for([@section, category]) do |f| %>
<% if category.errors.any? %>
Ocorreram alguns erros:
<% category.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= f.input :name %>
<%= f.submit "Salvar", id: 'submit' %>
<% end %>