<h2>edit game</h2>
<% form_for :game, :url =>
school_team_game_url(School.find(current_user.school_id),
Team.find_by_user_id(current_user), @game), :html => { :method =>
'put' } do |f| %>
<%= render :partial => 'fields', :locals => { :f => f } %>
<p><%= submit_tag "Submit Game" %></p>
<% end %>
</div>
...
<%= render :partial => 'round', :collection => @game.rounds %>
...
<tr>
<% fields_for_round(round) do |round_form| %>
<% @class = cycle("", "alt", :name => "colors") -%>
<% 3.times do |p| %>
<td class="<%= @class -%>"><%= round_form.select(:action, ["Miss",
"Skip", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]) %>
<%= round_form.hidden_field :player_id, :value =>
Team.find_by_user_id(current_user).players[p].id %></td>
#<%= round_form.hidden_field :row_id, :value => round_counter + 1 %></
#it keeps repeating 2 every time i hit Add Round. It needs to keep
counting up!
<% end %>
<td width="100%" align="center" class="<%= @class -%>"><%=
round_counter + 1 %></td>
<% 3.times do |p| %>
<td class="<%= @class -%>"><%= round_form.select(:action, ["Miss",
"Skip", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]) %>
<%= round_form.hidden_field :player_id, :value =>
Team.find_by_user_id(current_user).players[p].id %></td>
<% end %>
<% end %>
</tr>