Updating with ruby code