sample application from rails tutorial