girb0t/diggit — pull request #9 by euwest (2014-06-08 05:44:51+00:00)
Title: Sessions

sessions mostly set up. we should all brainstorm together on how to integrate sessions into the site, because while i have a few ideas, none of them seem totally amazing. the best looking option right now is using ajax to verify a record is in the database, and then taking the server's response [i.e. a user_id or 'nil'] and sending it to the sessions controller to make a session(or not). seems a bit weird to have the view being a go-between for two server-side controllers, so hopefully we'll come up with something better tomorrow.