Hello all,
I have an array=[rows][columns] which I would like to display on screen
without using tables. I have 3 columns. I tried doing this:
<% row.start.upto.(row.end) do |number| %>
<%= array[number][0]%>
<%= array[number][1]%>
<%= array[number][2]%>
<% end %>
But this resulted in only the last row to be displayed. So I tried
doing 3 loops similar to this:
<% row.start.upto.(row.end) do |number| %>
<%= array[number][0]%>
<% end %>This resulted in displaying the whole array, but since the contents
vary in length, some of them would be rendered on more than one line,
and some not, resulting in it not looking like a grid at all.
Can anyone help me with this? I successfully did it with tables, but
was wanting to do it via css.
Thanks,
Ahmed