Because the gerund is a kind of noun, the grammatical choice of purists is the possessive, but the majority don't seem to have picked up on this. I'd say they're both fine. I use both, but many only use one. You could call the possessive more formal.
- For Teachers