I'm surprised that the fish can go for 2 weeks without food - that's a #41#### sight more than I can

If that worries you in any way you can of course get some pretty smart automatic feeders...
Miles
That's because you're warm-blooded and fish aren't; nearly every calorie you consume goes to either keeping you warm or running that big, mammalian brain of yours
Fish don't have either of those 'expenses', plus they have a completely different metabolism, that's why they can go for so long without eating.
I would never, ever suggest the use of those automatic feeders, personally. I've heard too many stories of them malfunctioning and dumping in too much food, or letting the food get damp and rot before it goes in. There's also the fact that if you're not there to be doing the regular water changes then you don't want the fish producing too much waste.
You're far better off having a fairly low stocking, plenty of filtration and lots of live plants.
Thanks for all the replies. If that tank is too small why do all the pet stores advertise bettas and gold fish in 1 gallon tanks? 2.5 gallons is 250% larger than they suggest. Also in my previous attempts I had bettas that lived just fine in 1 gallon tanks, but died when I had to leave them for a week
Because they can and because it makes them a quick buck

They don't seem to think that the average person can cope with the principles or understand the science of a fish-in cycle or have the patience for a fishless; they seem to think all people just wander round in a haze of ignorance and don't care if the fish live or die; it's like they think of them as being akin to cut flowers; you buy them, they look beautiful and colourful for a week and then they die, you throw them away and get more, fresh ones...
They very fact that your bettas died when left alone for a week proves that they
weren't fine at all; you were just barely managing to keep them alive, as the minute you stopped working at it, the fish died.
I'd be quite confident leaving all my tanks for a fortnight; as long as the power stayed on for my heaters and filters I know my fish would be fine, because the tanks are set-up to be a proper enviroment/life support system.
It's perfectly possible to have a tank that can be left; it just needs to be larger than the one you're thinking of now
