RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: minhtuev
This sounds like a noob question, but I'm starting to learn Ruby. So I'm curious how this application is handling multiple user logging in/out. I figure that this revolves around using :user_id, but I'm confused regarding how :user_id is mapped to different user sessions (in particular :user_id is not defined anywhere before using, adding to my confusion). Hope someone can help to clear this up!