4
에 제한 권한 :2.0 캉캉 - 나는 나의 능력 모델에서 다음이 필드
class Ability
include CanCan::Ability
#...
def superuser_rules
can :access, :items
cannot :update, :items
can :update, :items, :foo_attributes
end
end
나는 것을 반영 양식을 가지고에만 foo_attributes 양식을 중첩 표시하여.
그러나 양식을 제출할 때 항목 업데이트가 거부되었습니다.
새로운 경로/작업을 추가하지 않고이를 피할 수있는 방법이 있습니까?
감사합니다.