将 cancancan 的 check_authorization 与带有自定义控制器的设计一起使用? - Using cancancan's check_authorization with devise with custom controllers?
Rails测试:确保在所有控制器和操作中强制执行授权(Pundit) - Rails testing: ensure authorization (Pundit) is enforced in all controllers and actions