diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/matches/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index e61d6b3..e9809a2 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -82,7 +82,7 @@ function score_peers() { <% team.users.collect{|u| u.user_name}.each do |k| %><label> Score for <%= k %><br> <% @player_score = 0 %> - <% current_user.scores.find_by_match(@match).each{ |s| @player_score+=s.value } %> + <% current_user.statistics.where(:match => @match, :user => current_user).each{ |s| @player_score+=s.value } %> <%= text_field_tag("scores[#{k}]", @player_score, size: 3) %> </label><% end %> </fieldset> |