Role-based authorization with Devise, devise_invitable, and cancan
Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
spec
vendor/plugins
.gitignore
.rspec
Gemfile
Gemfile.lock
README
README.md
Rakefile
config.ru

README.md

Rails authorization with Devise, devise_invitable and CanCan

This is a demo of a role-based blog implemented with Rails, Devise, devise_invitable and CanCan.

The blog is consisted of Article and Comment resources. There are three types of users: User, Author and Admin. Admin can manage all resources and can also invite Authors. Authors can create new Articles and manage those they have written. Signed in User can leave Comments. Guest users can only read blog.

There is only one Admin which is seeded. Authors can only be invited by Admin. Users can register, but their registration must be first confirmed via email.