Gaining Weight/Lost interest Rant

Hello ladies,
I'm gonna be honest, I've gain 40lbs and don't know exactly how. I know I'm not pregnant or anything. I'm very concerned about how much weight I've gained. I feel that my BF will lose interest in me because I've gained some pounds. I don't neccassarily look completely different than when I was 140lb but I am pretty concerned. I don't want to develop an eating disorder, but I do find myself think I can only eat once a day and that mean is like an apple and water. 
Any ladies have any advice on losing weight and eating right?