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’, :collection =>
category.subcategories, :order => ‘position’ %> # position is a
column in my subcategories table
<% end %>
this isn’t really working; is there a different way to do this in the
view or do i have to access this through my controller?