summaryrefslogtreecommitdiff
path: root/app/views/tournaments/_form.html.erb
blob: 89962667923995f807c1ba1bff80a84de9015cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<%= form_for(@tournament) do |f| %>
  <% if @tournament.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@tournament.errors.count, "error") %> prohibited this tournament from being saved:</h2>

      <ul>
      <% @tournament.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>