sdruby  

Re: [Sdruby] Ruby Loop with Conditional

Stephen Waits
Wed, 22 Nov 2006 02:19:14 -0800


On Nov 21, 2006, at 12:00 PM, Nathan Colgate Clark wrote:

Hmm... My desired output is ALL of my updates, seperated by years. So something like:

2006
   -Nov 24 - Ate a Turducken
   -Oct 30 - Frightened Small Children
2005
   -Feb 14 - Was Lonely
2004
   -March 1 - Stayed In-doors

Can you just ask the DB to group the results? Then in your view code, simply notice when the year changes and display appropriately?

--Steve
_______________________________________________
Sdruby mailing list
Sdruby@lists.sdruby.com
http://lists.sdruby.com/mailman/listinfo/sdruby