<%= form_for(@match) do |f| %>
  <% if @match.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@match.errors.count, "error") %> prohibited this match from being saved:</h2>

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

  <div class="field">
    <%= f.label :name, 'Match Name' %>
    <%= f.text_field :name %>
    <br/>
    <br/>
    <%= f.label :tanks, 'Tanks Competing (at least two)' %>
    <br/>
    <%= f.select :tanks, options_for_select(Tank.all.collect {|t| [t.name, t.id]}), {}, multiple: true, style: 'width: 300px;' %>
  </div>

  <div class="actions">
    <%= f.submit class:"primary" %>
    <%= link_to 'Match List', matches_path, class:"button" %>
  </div>
<% end %>

<%= form_for(@match) do |f| %>
  <% if @match.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@match.errors.count, "error") %> prohibited this match from being saved:</h2>

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

  <div class="field">
    <%= f.label :name, 'Match Name' %>
    <%= f.text_field :name %>
    <br/>
    <br/>
    <%= f.label :tanks, 'Tanks Competing (at least two)' %>
    <br/>
    <%= f.select :tanks, options_for_select(Tank.all.collect {|t| [t.name, t.id]}), {}, multiple: true, style: 'width: 300px;' %>
  </div>

  <div class="field">
    <%= f.label :public, 'Make public' %>
    <%= f.check_box :public, data:{toggle: 'toggle'} %>
  </div>

  <div class="actions">
    <%= f.submit class:"primary" %>
    <%= link_to 'Match List', matches_path, class:"button" %>
  </div>
<% end %>

Add toggle to make match public
Add toggle to make match public
