I'm in the same boat - gaining although I'm working out longer and harder than ever. One thing I discovered is that I need to have protein immediately after I stop riding, or else I'll just eat all day long. If I have a good protein within an hour after my ride, I can pretty much control the eating the rest of the day. I probably don't drink enough water either. It's hard to balance, because part of the reason I ride is to control my weight.