rails find condition加条件

Post.find(:first, :conditions => ['status = ? and active = ?', 1, 1]) 

你可能感兴趣的:(Rails)