libbyschuknight / go_surf_5

Gone & go surfing, Rails app, with a how to (Rails 5)
1 stars 0 forks source link

Add authorization (CanCanCan) #16

Open libbyschuknight opened 7 years ago

libbyschuknight commented 7 years ago

https://rubygems.org/gems/cancancan/versions/1.13.1

https://www.sitepoint.com/cancancan-rails-authorization-dance/

https://github.com/CanCanCommunity/cancancan

libbyschuknight commented 7 years ago

Look at cancancan app that have made, which uses a fake user and add cancancan to here and use user.admin? where admin is a boolean.

Take out other auth stuff that had put in with devise

libbyschuknight commented 7 years ago

https://github.com/ryanb/cancan/wiki/Role-Based-Authorization - using this

http://stackoverflow.com/questions/32158836/how-to-add-roles-to-my-users-in-rails-app

http://codepany.com/blog/rails-5-user-accounts-with-3-types-of-roles-devise-rails_admin-cancancan/