Use Rails relationships.