rails: simple for loop to sum numbers from 1 to 5