From 987b3e0d151d58c6b44e16e3ec4d13ce7f303fe7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Apr 2014 03:04:09 -0400 Subject: get the tournament creation page complete --- app/views/tournaments/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb index 78ceca4..b8d6fc1 100644 --- a/app/views/tournaments/_form.html.erb +++ b/app/views/tournaments/_form.html.erb @@ -83,9 +83,9 @@
Stages - + <% for i in 1..(params[:num_stages].to_i) do %> - <%= fields_for "tournament[stages][#{i}]", @tournament.stages do |stage_fields| %> + <%= fields_for "tournament[stages][#{i}]", @tournament.stages[i] do |stage_fields| %>
Stage <%= i %> <%= stage_fields.label :scheduling_method %> <%= stage_fields.select(:scheduling_method, @tournament.scheduling_methods.map{|method| [method.humanize, method]}) %> -- cgit v1.2.3-2-g168b