Originally Posted by Creative Engineering
An alternative: with the wheel on the bike.
Clamp a piece of wire, (cut-up a coat hanger), to the frame with a C-clamp. bend the wire so it's close to the sprocket teeth. Then do what Joe said.
Thats the way I always do it, except I use a zip-tie!