I've done well by trying to eat a little bit often on long rides. For me, that means eating something (half a power bar (I like the "gold" ones), a couple of fig newtons, or a banana) every 20 minutes or so. If I wait an hour and then eat a lot, it bothers my stomach more.