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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6d7c5e915e2271d5ef39036b4bc47b79?d=identicon&s=25 Chris (Guest)
on 2006-02-12 01: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.