%= form_for(@branch) do |f| %>
<% if @branch.errors.any? %>
<%= pluralize(@branch.errors.count, "error") %> prohibited this branch from being saved:
<% @branch.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>