Topic: Sorting by date and finding index from item date?
Hey guys, I just started ruby around 1 month ago for my final project for school.
I understand the variables and methods and rthml and stuff, but there's quite a few (actually many hehe) questions that I have.
I've been trying to do this for around 2 weeks now, and all its doing is aggrivating me because whenever I try to find help, I feel like I have to learn 2 new things to accomplish my first task. Anyways, enough rambling.
I have to make an itinerary with stored events.
I have the Main itinerary page, and I can select an itinerary.date link that will take me to a new page that lists all the stored items in the database.
1) How would I find out which date was selected by the user on the main page so I can display ONLY the items that have that certain date from the database?
2) I know these might seem like baby questions, but how do I sort my main page so the dates are descending? And how do I put it in a better form then 2007-01-27? (IE: Can I make it show the date as January 27, 2007 instead?)
Thanks all, really appreciated and I don't know why i'm having so much trouble with ruby...
- SideFFect -