Hi, I have three models: people, visit, place. Each time a person visits a place, then a visit is created. I have the relationships set up correctly with has_many through. I want a simple way to find a list of all the visited (and also not-visited) places. i.e. I want to be able to call something like Places.visited and Places.not_visited How can I do this? I thought I could do it with a named scope but then I realized that there is nothing in the Places table to say if it has been visited or not. The only record I have of a place being visited is a row in the Visits table. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---