Displaying 1 result from an estimated 1 matches for "sucategories".
Did you mean:
subcategories
2006 Jul 02
4
:order in partial
Hi,
i was looking through the docs and couldn''t find a good clean solution
for ordering a partial with an :order clause.
say i was iterating over categories and thier corresponding
sub-categories (regular belongs to) and wanted to order the
subcategories according to a certain column;
<% for category in @categories %>
<% render: partial => ''sublist'',