edit config with ruby