named_scope :in_last_month,:conditions => [ "records.created_at > ?",1.month.ago ]
要调用它(在你的控制器中):
Record.in_last_month