【发布时间】:2018-03-02 12:09:10
【问题描述】:
当我将图片上传到服务器时是对Ckeditor::PicturesController#create的请求(它位于gem ckeditor)并出现错误:
CanCan::AuthorizationNotPerformed (This action failed the check_authorization because it does not authorize_resource. Add skip_authorization_check to bypass this check.)
我怎样才能不使用monkeypatching(在Ckeditor::PicturesController 中不指定skip_authorization_check),并在ability.rb 或其他方式中解决此问题
【问题讨论】:
标签: ruby-on-rails ruby ckeditor monkeypatching cancancan