I use CanCan Ability in active_admin.I want to comment in page show.But I use CanCan is can't Add comments in show page.
This is error message:
You are not authorized to perform this action.
Configure the ActiveAdmin::Comment
at ability.rb
:
can [:read, :create], ActiveAdmin::Comment
I found the answer from this seemingly unrelated page https://github.com/ryanb/cancan/issues/597
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.