app/helpers/matches_helper.rb
def rank_color(match)
        rank = choice_num(match)
        if (rank <= 3)
            "bg-green"
        elsif (rank <=6)
            "bg-yellow"
        else
            "bg-red"
        end
    end
# Determine which background color class to add to the rank column of the match table  
Determine which background color class to add to the rank column of the match table
Determine which background color class to add to the rank column of the match table
def rank_color(match)
        rank = choice_num(match)
        if (rank <= 3)
            "bg-green"
        elsif (rank <=6)
            "bg-yellow"
        else
            "bg-red"
        end
    end
def rank_color ( match ) rank = choice_num ( match ) if ( rank <= 3 ) "bg-green" elsif ( rank <= 6 ) "bg-yellow" else "bg-red" end end
Determine which background color class to add to the rank column of the match table
Determine which background color class to add to the rank column of the match table
match