Hi all, Suppose you have two models -- one for Files and anther for Downloads -- such that a file has_many => :downloads
If you wanted to get a count of the downloads for the current month and the two previous months, is there a way to get that data from one query? Something like: @file.downloads_for_month( 2008, 10 ) where 2008 is the year and 10 is the month... Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

