Hi.
Say I have a collection of @dogs, and I want to render part of the collection in one place and the rest in another. It's easy to spit them all out together:
render :partial => 'dogs/summary', :collection => @dogs, :as => :dog
But is it possible to manipulate (refine) your collection in-line, or is it better practice to make those definitions in your controller and do something like:
%h2 Male Dogs:
render :partial => 'dogs/summary', :collection => @male_dogs, :as => :dog
%h2 Female Dogs:
render :partial => 'dogs/summary', :collection => @female_dogs, :as => :dog
Thanks.