-
Notifications
You must be signed in to change notification settings - Fork 25
Notes: 2016 01 25
#Sessions: Decided to use a gem to do the job because otherwise it would take too long for us to implement it ourselves. Added Clearance gem.
###Class: Clearance::Configuration
-
config cookie domain = you want to keep the dot at the beginning of
.diversitytickets.org
, to make sure the cookie is dropped no matter what website people go on. if they go onwww.divesitytickets.org
or justdiversity tickets.org
Clearance adds routes for you. They're not in our route file though. We have to delete our routes pointing to our sessions controller. If we want to use our session controller, we will inherit from the clearance controller, which is not visible to us, it is saved in the gem in rails. Problem = routes are all pointing at the clearance controller and not our sessions controller so there's no way to get to our sessions controller. We could however, turn off the route producing thing and take full control ourselves. We don't feel like that though 😎 so we're gonna let it be.