I was ironically looking at one of these (one you buy) when I stumbled on the instructable for building one. Its a nice and simple build. One addition, maybe a spring added in with the cord?
http://www.instructables.com/id/An-Inexpensive-and-Safer-Bike-Doggy-Walker/?ALLSTEPS