Accounts are handled in the Users controller/model. Login sessions are handled in the Session controller. Check if a user is logged in with session[:user] (it contains their user ID). Will write more when it's not 3AM (AKA tomorrow hopefully).