Ground wire for light switch?

i am replacing light switches. the ground that comes from the wall should this be attached to the green ground screw on the light switch or directly to the box?
3 answers 3