demo app by rails tutorial