# Newbie guidance: Dates and grouping

**URL:** <https://www.ruby-forum.com/t/newbie-guidance-dates-and-grouping/100776>\
**Category:** Rails\
**Created:** [August 1, 2006, 12:30am UTC](https://www.ruby-forum.com/t/newbie-guidance-dates-and-grouping/100776 "2006-08-01T00:30:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tysone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e79b87/32.png) [@tysone](https://www.ruby-forum.com/u/tysone)\
**Post date:** [August 1, 2006, 12:30am UTC](https://www.ruby-forum.com/t/newbie-guidance-dates-and-grouping/100776/1 "2006-08-01T00:30:50Z")

</div>

Hey all -

New to Ruby, though I’ve managed to stumble around in PHP (well, enough  
to hack together what I needed).

I’ve initiated a (hopefully) simple project to keep track of upcoming  
stories in our newspaper. It’s a one-table database with just a few  
fields (writer, publication date, synopsis, notes, page assignment).

I’m slowly replacing the default scaffolding, but could use some  
guidance about the best way of building a single list view that does the  
following:

- Groups and sorts stories planned for the upcoming week by pub date  
(i.e. a header for Monday, with that day’s stories below it; a header  
for Tuesday, etc.)

- Sub-groups by page number (i.e. visually group all Monday page 1  
stories together, then Monday page 2, etc.)

Thanks in advance for any help!

- Tyson
