Yeah, I tend to eat more after going to the gym. At the same time, my metabolism is raised. You pretty much have to just eat less, or eat better if you wanna pack muscle on cleanly. Protein shakes make that easy, just have shakes after you workout. If you got shakes it's fairly easy to not gain fat with your muscle, but without, it's harder. Not impossible by any means, just harder, as it's hard and expensive to eat the food you'd get the same amount of protein from, and with food you almost always end up with more calories per amount of protein.
Generally, too, bodybuilding goes through cutting and bulking cycles. You bulk, get fat basically, then shed the fat off and look "ripped."
Such is life.
Only way to get around it is by not eating as much, or doing more aerobic exercise (See Michael Phelp's diet...) If you don't eat as much, you need to make sure the meals you do eat are very nutritious for your body to recover from lifting, and you'll probably want to take vitamins, minerals (magnesium especially) and possibly some amino acids (not bcaas, more stuff like taurine or carninitine for brain health.)