Trying to implement CanCan. Added CanCan gem. Bundle Install.
Then rails g cancan:ability which created the ability.rb model.
Uncommented the ability in ability.rb.
Removed the custom authorization in the micropost model and added
authorize_resource to it. Had to tweek the micropost controller a bit.
It looks like it works now. Need to test further.
modifying abilities
Update README.md
CanCan added.
conflicts
changes
re-adding README
added student role; defining abilities; modifying user, micropost controller to accomodate CanCan
testing complete, CanCan working for student role
configuring cancan
Merge pull request #12 from brunopgalvao/cancan

Cancan