Pergunta de entrevista da empresa EPAM Systems

Regular Ruby questions, I had to write two methods/algorithms with some random factor and write unit tests for one of them. After that I got a few questions regarding Rails, Active Record, Relational Databases and stuff like that. Nothing out of the loop or crazy...