If you end ribbing with a knit, start with a purl. If you end with a purl, start with a knit.
Look at the stitches you're creating. This will help you learn to 'read' your knitting. If the next stitch on the left needle is a V, knit it. If it's a bump, purl it.