I would like to have review.avg_answer2, review.avg_answer3, etc outputted by the following loop:
<% @count = 1 %>
<% 10.times do |x| %>
<td><%= link_to review.avg_answer1.to_i, "#" %></td>
<% @count += 1 %>
<% end %>
I know there is a simple answer, but it's not hitting me.
I tried "review.avg_answer#{@count}.to_i" but of course it doesn't work.
Thanks!