class User < ActiveRecord::Base
named_scope :active, :conditions => {:active => true}
named_scope :inactive, :conditions => {:active => false}
end
#
User.active # , User.find(:all, :conditions => {:active => true})
User.inactive # , User.find(:all, :conditions => {:active => false})
そしてCakePHPはそれと何の関係があるのでしょうか?