I have the following columns in my table:
value1 value2 value3 value4 value5
I want to be able to loop through them like this:
<% for i in 1..5 %>
<div><%= user."value#{i}"</div>
<% end %>
Of course this code doesn't work, so how can I get the value from an ActiveRecord object with a string?