I have some code in a view script that iterates through an array of arrays:
<% @rows.each do |data| %>
<%= data[0] %>: <%= data[1] %><br>
<% end %>
How can I easily convert each data
array to a hash so that I can refer to each item with a key?
<%= data[:name] %>: <%= data[:email] %><br>