摘要: Nick Kallen颇受欢迎的has_finder插件以named_scope的方式集成到了Rails 2.x版本,例子:Ruby代码 class User < ActiveRecord::Base named_scope :active, :conditions => {:active => true} named_scope :inactive, :conditions =... 阅读全文
posted @ 2009-10-11 16:58 麦飞 阅读(2019) 评论(0) 推荐(1) 编辑