你需要设置一个Ability对象:ability = Ability.new(current_user_object) 现在您可以检查授权:ability.can? :read, object_to_be_checked current_user_object:您想要检查授权的用户对象 object_to_be_checked:是您想要检查授权的对象