Please help a newbie with rib stitch!

Hi guys,
I have just joined the site and am hoping some experienced knitters can help me. I am very new to knitting and trying to knit a beanie pattern for my son. The pattern is in 1x1 rib stitch with an even number of stitches. It asks me to decrease at the beginning and end of each row but I cannot seem to keep the rib pattern going. Later in the pattern I have to start increasing while continuing in rib and I am really struggling as it always seems to end up with I think moss stitch!! Do I start every row k1 p1 and continue along row and on the increases and decreases what should I be doing??? Please help as this is driving me mad. Sorry if this seems really basic to all the experienced knitters out there.

For ribbing you always knit the knits and purl the purls - see this thread for a video and some pictures for how to do that. The edge sts will change, but if you keep the rest of the sts in the rib, it will come out fine.

exactly.
When you do k1 p1 and decrease by one, the next time you get there you do p1 k1 and so forth.
But trying to figure this out is way to hard - just learn to recognise your knits and your purls. Once you know what they look like, you can just work them the way they appear.

For a quick fix: once you see moss stitch: you are off by one stitch.

And: in k1 p1 ribbing the knit whales lie higher than the purl columns. So when the stitch you work is part of a “hill” or “ridge”, then you knit it. And if it is a “valley” then you purl it. If you can not see with the stitch on the needle itself, then at least look at the stitches further down in your knitting. Those lines run through.

Thank you for your replies. I will give that a go and see how it turns out and let you know. Keeping my fingers crossed!