AR and antijoin with habtm

There isn't a more 'Railsey' way that I've found, but you don't need to use find by SQL. You can just put the where clause in your conditions:
    :conditions => ['k.id NOT IN ( SELECT..... )' ]

Jason

Tony wrote: