Displaying 1 result from an estimated 1 matches for "clausee".
Did you mean:
clause
2006 May 22
0
Ordering one model class by details contained in another
...pect I could easily sort them returned competitions in memory, but
that would break the pagination support that the scaffold provided and
I don''t currently see a why to make a post-retrieval sort play nice with
any pagination scheme I could think of.
I tried a rather messy :conditions clausee on the data source for the
paginaite, but as it had to use a MIN(event_date) type construct it fell
apart unless I switched to a find_by_sql style call which felt
inelegant.
I''m currently playing with making the aggregation :act_as_list, while
adding an ordinal to control the ordering...