Is there a rail-like way to split activerecord query results? For example, I did @results = Items.find (: all), but I want the top half of the elements from @results to appear in the line below <ul class="part1">, and the other half to be displayed in <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>
early!
source
share