Beef jerky is a great choice for mid-ride on a long ride ... pity the good stuff is as expensive as it is. The good stuff just about melts in the mouth. I'd carry it with me on any ride of about 100 km or longer.
It's delicious and it provides you with electrolytes and protein ... all three points are very important for long rides.