I have an active admin code running which is as below
ActiveAdmin.register UserProcess, as: 'Summary' do
....
end
active_admin.rb -
config.authorization_adapter = ActiveAdmin::CanCanAdapter
config.cancan_ability_class = "Ability"
config.on_unauthorized_access = :access_denied
I want to block user from accessing this Summary page without actually blocking his access from UserProcess.
adding cannot :manage, UserProcess
works for the page but then it also does not allow the user to access him other pages.
Also my namespace is :actadmin
Please let me know the correct thing to write in Ability class