Resource.add_rule