ruby code to fill in urls