add gem ‘cancancan’ for authorisation library
rails g cancan:ability
rails g migration add_is_admin_to_user is_admin:boolean
rake db:migrate
add user.is_admin? to ability.rb
user who is admin can Edit and Destroy user
Merge pull request #19 from hxx/cancancan

Cancancan