It is a common misconception that gaining weight is all about indulgent eating - I had it repeated to me so many times.
The ordinary 'healthy' diet with high amounts of carbohydrates causes me to gain weight at a great rate. I have been like that all my life.
To lose weight I cut out the carbs - works every time.
It has taken some time recently, but eating more fat seems to have sorted that out.