SimpleUser
Manage users and admins with Devise and Omniauth-Facebook.
Make avaiable to your users for loggin with Devise or Facebook, and manage them and your admins. Each admin is related to roles with Rolify, and manages authorization with CanCan.
Installation
-
Add to your gemfile:
gem 'simple_user'
-
Run
bundle
-
Execute:
rails generate simple_user:install
-
Run migrations:
rake db:migrate
-
Run seeds:
rake db:seed
-
Add to your routes.rb:
mount SimpleUser::Engine => "/simple_user", :as => "simple_user"
-
Add to your application.js:
//= require simple_user/application
-
Watch the test/dummy for an example of the links
TODO
-
List the methods for the links
-
Explain integration with models of the parent app
-
Integrate Twitter
-
Ingrate Google
-
Remove unnecessary files and codes (rake task, omniauth, …)