I try to eat something every 1.25 hours on longer rides. I've found that works best for me. Of course, if I get hungry before that time, I will take in some more food.
Regardless of ride length, I always bring some sort of food, but will rarely eat anything if I know the ride will be sub 2 - 2.5 hours.
My new preferred snack is a jelly sandwich made with french toast waffles.
Simple, quick to make, and not an issue for me on the bike.
Make your favorite french toast batter (or freedom toast if you prefer), soak your favorite hearty bread, and cook in your favorite waffle iron.
I cool the bread on a wire rack. When cooled, I cut each slice of bread into quarters and then fill with my favorite jelly(ies). Each piece of bread will yield two mini-wiches.
My repeated use of the word favorite should indicate how much I like these.
I've tried peanut butter as well as nutella, but I think the jelly is better as it seems to keep the bread moister and is therefore easier to eat on the bike.
Yesterday's ride was 4.5 hours with about 6K feet of climbing. For food, I took a banana and four of these sandwiches (1 PB, 2 grape jelly, 1 blackberry jelly); I ate the banana and 3 mini-wiches. For drink, I took in 2.5 bottles of water and 2 bottles of emergen-c drink mix.