find if child element is nil

some code would be nice. Especially if you give bonus points!

if the parent belongs_to child or viceversa, then you can use your
format above. However, if you have a join table (HABTM or HMT) then
you will need to do a find based on that join table

JoinTable.find(:all, :conditions => {:child_id => nil })

j