Diet can go along way into addressing the problem, but keep in mind that early stages of peptic ulcers can also cause the same symptoms. If medication and change in diet doesn't work, further investigation maybe needed, especially if your symptoms were sudden in onset rather than chronic over a long time period.