Permalink
Browse files

row not rows

  • Loading branch information...
1 parent 22b5220 commit 9cf1be96fdddb0ef905c271c3d10d66c50768254 @jrochkind committed Aug 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/report_controller.rb
@@ -18,7 +18,7 @@ def index
# calc the 'victory rate': wins / (wins + losses), disregarding ties,
# expressed as a percentage
def victory_rate(row)
- if rows["wins"].to_i == 0
+ if row["wins"].to_i == 0
0
else
100 * row["wins"].to_f / ( row["wins"] + row["losses"] )

0 comments on commit 9cf1be9

Please sign in to comment.