muhammadyana said about 4 years ago on Rails dynamic role management :
there is a gem with cancancan https://github.com/CanCanCommunity/cancancan/
there is a tutorial for creating dynamic ability, but there is no with custom action and custom controller.  i mean super admin can checklist action to user ability

Thanks