<%= form_for(@branch) do |f| %> <% if @branch.errors.any? %>

<%= pluralize(@branch.errors.count, "error") %> prohibited this branch from being saved:

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>