Skip to content

This app can be used as a starter-kit for a rails4 app with role based authentication.

Notifications You must be signed in to change notification settings

Jrakesh/rails4-devise-cancan-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rails4-devise-cancan-bootstrap

This is a rails v4.0.2 app and can be used as a starter-kit for your own app.

Points to ponder:

  • Devise + Cancan for authorization and role based authentication.
  • Bootstrap-3 integration
  • Dynamic role creation functionality.
  • HAML used as templating engine.

Installation

In the command line run:
bundle
rake db:setup

This will install the gems specified in Gemfile and create the tables in the database (please change the config/database.yml to set your configuration)

Devise + Cancan

This deadly combo is used for user authorization and authentication.

Currently only admin users are given all the access. You can add up more access definitions in app/models/ability.rb

Default user is created. See config/application.yml for more settings.

Dynamic Role Creation

You can add as many roles you want and define its access scopes in Ability class. Currently only admin users are given the access of role creation.

TODO

  • Add the test coverage.

Use this code as you want! ENJOY!!

About

This app can be used as a starter-kit for a rails4 app with role based authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published