For longer rides, I usually put some powerade/gatorade in one of my water bottles and then I throw something like a Clif bar or a payday candy bar in the pocket of my jersey. I don't know how healthy this is, but it's easy to carry and it gives me the energy I need. I find that eating something (but not necessarily an entire bar at once) every 1-1.5 hours works for me.