This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Home
A succinct guide to getting started
(assuming you have restful authentication setup already)
- If you’re using submodueles:
git submodule add git://github.com/jbarket/restful-authorization.git vendor/plugins/restful-authorization
otherwise:
script/plugin install git://github.com/jbarket/restful-authorization.git
- ./script/generate authorized role user
- At the top of a controller (probably AdminController, if you have one), add:
authorize_role “pro”, where pro is whatever role you want to require
- In the console:
u = User.find(123) where 123 is whatever user you want to make an admin r = Role.create!(:name => "pro") u.roles << r </pre> - That’s it







