We understand that we can eat the wrong things on occasion but I ended up with heartburn eating the same old things and doing the same old things. My brother and sil and my husband got heartburn much more frequently also after we turned a certain age.
I don't think or believe it's all in the diet! I think some people are predestined to have these problems. Diet not being the complete culprit.
Some anti-inflammatory medications can eat at your stomach lining if you don't eat well before taking them. I learned this the hard way.