summaryrefslogtreecommitdiff
path: root/app/views/matches/show.html.erb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-24 00:46:42 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-24 00:46:42 -0400
commit1942d4307f392d61d13cdc488fecd523f55e427d (patch)
treed4ad5210f28a2c07aaca9548ebd883e1672cd2d8 /app/views/matches/show.html.erb
parent1429cd41bb4af3429f28dc97efd6994433ebde7b (diff)
Fixed Spacing, Scoring, and began implementing statistics
Diffstat (limited to 'app/views/matches/show.html.erb')
-rw-r--r--app/views/matches/show.html.erb2
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>