1
Make a slip knot near the yarn tail, and slide it onto the tip of a circular needle ("holding needle") held beneath the ribbing needle.
For a firm edge, use same size needles as will be used for the ribbing. For a more flexible edge, use needles 2 or 3 sizes larger for the cast on, then change to smaller needles for the actual ribbing. (It's okay to use a smaller size circular for the holding needle.)
Wrap the yarn around both needles.
Cast on (wrap) 1/2 the number of stitches you want for your ribbing.
If your ribbing is a multiple of 4 + 2, cast on half the multiple of 4, and increase in the first and last stitch of the first ribbing row (photo 4).