Forum: Ruby on Rails slicing and dicing timestamps by month, week, day, etc

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris (Guest)
on 2006-02-12 02:41
I'm trying to finish up a comp lab sign-in app in RoR that includes a db
table logging each visit with a timestamp. I want to be able to loop
through the visits table and get a weekly or monthly array and print a
table of the last four weeks listing a count for the number of visits
each day. I've got it working alright but it's pretty ugly...overcoded.

Does anyone know of any similar open source code out there I could get
some ideas from??
This topic is locked and can not be replied to.