#{ingredient.food.name} " result += "{ingredient.calories}
" end # add footer lines result += "Total calories are #{total_calories}
" result += "You earned #{total_nutritional_points} " result += "nutritional points
" result end ... end HTML Report#{ingredient.food.name} #{ingredient.calories}
" end def foot result = "Total calories are #{@recipe.total_calories}