Scarf is rolling up on sides, help

i am a new knitter. i knitted a scarf with a cable pattern. on the ends of the scarf to about 3 stitches in they folded up. Is there anything that i can do to get it back the right ways on the sides? please help me.:shrug:

Blocking it may help, but you may have the same thing going on as in a stockinette scarf if you have stockinette on either side of the cable. You would have to put an edging on.