Pergunta de entrevista da empresa RTS Labs

I was given a skeleton Rails app and asked to implement a simple user authentication system.