I've been on several rides where deraillers have broken off, and yep, you single speed it the rest of the way.

I carry a spare hanger for those kind of issues. My solution is to ride with guys with tool kits. ;-)

seriously, Zinn and the art of MTB maintenance has a whole chapter on trail fixes.

Irulan