Tournament: <%= @match.tournament.id %>

Name: <%= @match.name %>

<% if @tournament.hosts.include?(current_user) %> <%= form_for(@match, method: "put") do |f| %> <%= f.submit("Select winner") %> <% end %> <% end %> <%= link_to 'Edit', edit_tournament_match_path(@tournament, @match) %> | <%= link_to 'Back', tournament_matches_path %> <% unless @match.winner.nil? %>

Winner: <%= @match.winner.users.collect{|u| u.user_name}.join(", ") %>

<% end %> <%= link_to 'Edit', edit_match_path(@match) %> | <%= link_to 'Back', matches_path %>