Ruby document create