summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/matches/show.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index d8112b7..f5a3686 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -9,14 +9,14 @@
</p>
<% if @tournament.hosts.include?(current_user) %>
- <%= form_tag(tournament_match_path(@tournament, @match), method: "put") do %>
+ <%= form_for(@match, method: "put") do |f| %>
<ul>
<% @match.teams.each do |team| %>
- <li><label><input type="radio" name="winner" value="<%= team.id %>">
+ <li><label><%= f.radio_button(:winner, team.id) %>
<%= team.users.collect{|u| u.user_name}.join(", ") %></label></li>
<% end %>
</ul>
- <%= submit_tag("Select winner") %>
+ <%= f.submit("Select winner") %>
<% end %>
<% end %>