Aegis tracks whether an action is reading or writing. This allows you to
deny all reading or writing actions of a resource:
resources :projects do writing do allow :admin end reading do allow :everyone end end
By default resources create
index as reading actions. All other actions (
destroy) are created as writing actions by default.
When you define a new custom action, it is considered to be writing by default. You can create a read-only action like this:
action :foo, :writing => false