update from rails