Status | Name | Winner | ||
---|---|---|---|---|
<%= match.status %> | <%= match.id%> | <%= match.name %> | <%= link_to "Show", tournament_match_path(@tournament, match) %> | <%# If user is the host, let them start the tournment %> <% if @tournament.hosts.include?(current_user) %> <%= form_tag(tournament_match_path(@tournament, match), method: "put") do %> <%= submit_tag("Start Match") %> <% end %> <% end %> |