ArgumentError in MpPublicController#detail_game_result

bad value for range

Extracted source (around line #71):
69
70
71
72
73
74
              
# Check matches if both present
(1..num_match).each do |match_num|
home_match = game_home.mp_matches.find_by(num_player: match_num)
away_match = game_away.mp_matches.find_by(num_player: match_num)
if home_match.mp_player and away_match.mp_player.nil?

Rails.root: /var/www/xeng6

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"game_id"=>"68"}

Response

Headers:

None