Domanda

can :manage, :all works but can :manage, :Micropost does not work

I have a micropost model. What am I missing???

Here is the code: https://github.com/brunopgalvao/prana/tree/cancan

È stato utile?

Soluzione

Looking at your code, I think if you try

can :manage, Micropost

that should hopefully work.

Check out Defining Abilities in the Cancan wiki

Hope this helps

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top