RailsCasts Pro episodes are now free!
Learn more or hide this
def current_user @current_user ||= User.find(session[:user_id]) end