I'll second the balanced meal suggestion. I also stick to something I absolutely know will not cause me any sort of gastronomical distress. A long ride is definitely not the time to learn that something causes you problems.
Equally important is to eat well after the ride to help your muscles to recover quickly.