Rails-fied version of TTT