To grind, jump and then press the jump button again while landing on a rail or edge. If you need more detail, the tutorial video in Extras can help.