Hello all,
I have what is conceptually a pretty simple poblem, but can’t think of
an obvious solution. I have a group of objects (@items), that I wish
to render as rows. Items have dates, and I wish to group them by that
date, inserting a header row each time the date changes e.g.:
header row
row 11/11/2004
row 11/11/2004
header row
row 11/23/2004
I’m currently rendering the rows like so:
render :partial => ‘item’, :collection => @items
I’m curious if there’s a a way to keep track of a date value between
insert a spacer each time it changes. I couldn’t find one looking
over the docs. Anyone had to deal with this?
As always, any help is greatly apreciated,
pt.
Parker T.
http://www.parkert.com/
510.541.0125