sample app by rails tutorial