%= form_for(@tournament) do |f| %>
<% if @tournament.errors.any? %>
<%= pluralize(@tournament.errors.count, "error") %> prohibited this tournament from being saved:
<% @tournament.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :address %>
<%= f.text_field :address %>
<%= f.label :director %>
<%= f.text_field :director %>
<%= f.label :director_email %>
<%= f.text_field :director_email %>
<%= f.label :tournament_type %>
<%= f.select :tournament_type, @tournament.tournament_types %>
<%= f.hidden_field :user_id, :value => current_user.id %>
<%= f.submit 'Submit',:class=>"btn btn-success" %>
<% end %>