Specific CanCan Abilities for Rails Admin -


i trying manage permission in railsadmin, having trouble getting want to.

using ability file have set up. want able allow specific kind of user create, read, trash, export particular model.

i decided change:

can :manage, terms, company_id: company_id 

to:

can [:create, :read, :trash, :export], terms, company_id: company_id   

thinking still show little "info" , "delete" icons removing "edit" icon. instead shows "info" icon.

i want pencil gone. or guidance appreciated. looked @ cancan page , didn't help.

original:
before
after:

after

below:

can :manage, terms, company_id: company_id 

i added:

cannnot :update, terms, company_id: company_id 

which seemed work properly


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -