Example app using Devise Roles(Admin) to manage Users with CanCan
Ruby JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits ahead of codedmart:master.
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
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
config.ru

README

Forked from zmbmartin/devise-roles-user-management. Modify for use with sqlite rather than mongodb.

This is a quick and simple example of how you can use Devise with CanCan so an Admin(role) can manage Users.

When you use the 'Sign Up' link from the main page your user has the 'Admin' role which allows this user to create
other users. When you create a user from within the application you can set the users role as either 'Admin' or 'User'.
If they have the 'User' role then they can not create other users.