I have a simple one to many relation:

class Precinct
  has_many :districts
...
end

I would like to find all Precincts that have no districts in a finder.
Is that possible?

I also am using the searchlogic gem (very nice) but even with that I
could not concoct a one liner to do what I want.

Any ideas would be greatly appreciated!

- PIto
-- 
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.

Reply via email to