Topic: Find all excluded in has_many :through
Hi, newbie question - I have the following models:
has_many :photos, :through => :configurations
has_many :persons, :through => :configurations
If I want to find all photos associated with a person, I just do
@person = Person.find(params[:id])
@photos = @person.photos.find(:all)
My question is, how do I find all the photos that are NOT associated with that person?
I tried doing it through the configurations table, but I think I'm looking in the wrong direction.