If I'm carrying a pannier (which I usually am) I put the u-lock and cable in there.

If not, I bungee it to my rack.