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