How to fix a flat tire while off roading

out on a trail and blew a tire? no repair shops for 50 miles? all you need is a filled aerosol can and a lighter...