I am looking to create a list layout similar to the one found here:
This is the code I have so far:
<div class="wrapper">
<ol>
<% CraigslistZipCode.select("distinct region, fee").each do |record| %>
<li><%= record.region %> <%= record.fee %></li>
<% end %>
</ol>
</div>
I am struggling to format the data into three columns as desired while looping through the records. I want to prevent the list from becoming excessively long and instead split it into multiple columns after a certain number of items.