Hi guys.. I have a the following situation: pages has many groups.
Now i am trying to find the first page who hasn't got a group with activerecord. I tried things like this:
Page.find(:first, :joins => :groups, :select => 'DISTINCT `pages`.*')
but of course no luck so far.