I lose a lot of salt during rides, so I tend to crave salty things on long rides...particularly salty/sweet mix. One of my faves is a mix of 1/2 almonds, 1/2 dates (or craisens), sprinkled with extra lite salt or sea salt. Otherwise, it’s usually something like a clif bar.
If I’m going less than 3 hours, I usually end up just consuming a GU or two or maybe some electrolyte mix...Often on rides less than 2 hours, I just drink water and eat “real food” when I finish.