Is there a rails-like way to divide results from an activerecord query? For example, I did @results = Items.find(:all), but I want the top half of items from @results to appear in a line item under <ul class="part1">
, and the other half of them to appear under <ul class="part2">
.
<ul class="part1">
<li><a href="#">result["name"]</a></li>
</ul>
<ul class="part2">
<li><a href="#">resultpart2["name"]</a></li>
</ul>
thanks in advanced!