Notes posted by tom2cjp
RSS feed
tom2cjp -
September 21, 2010
1 thank
using joins, group, having
Code example
named_scope :red, :joins => [:color_lis => :color], :group => "color.id", :having => ["color.xx IS NULL"]