grinding

im just beginning how to grind and i was wondering if you use the cranks to grind or just the pedal.

On rails: pedal
On ledges: both