Skip to content
bbenezech edited this page Feb 6, 2012 · 4 revisions

Example authorizations for cancan:

  # with
  alias_action :update, :destroy, :create, :to => :write

  can :manage, :all
  # includes
  can :write, :all
  # includes
  can :create, Model
  # equals
  can :new, Model
  # includes
  can :create, Model, { default_attributes }

More here

Clone this wiki locally