I usually carry a spare tube with me and a patch kit. In most cases, when I do get a flat, it's just that one time during a ride so I don't patch on the trail/road if I don't have to.
When I get home, I clean the area with acetone(works well), apply a thin layer of cement, let it mostly dry, apply patch with firm pressure and leave for an hour or so. Come back, peel off patch foil/plastic, dust the area with some talc and then fully deflate the tube and bundle it back up to go into my pack.
Nine times! Nice - I have a few more holes to put in those tubes.