just as a reference, not a recommendation...
before my 45 miles rides. i'll eat normally the night before, as late as 9 pm. then i won't eat anything until i'm at about the 35 mile mark, then a 1/2 a PBJ. i'll have water throughout the ride though. but if i go more than about 35 miles i'll have a good chance of bonking. everybody is probably different though.