That title doesn't explain it very well... Basically a User has many sign_ins, and sign_ins have a created_at field.
I want to do a named scope on User which returns all users who have no sign_ins in the last two months (ie have no associated sign_in records where created_at >= 2.months.ago). This feels like it should be simple but i can't get it. thanks max -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

