Yes it is true. Because charley horses can be caused by being dehydrated (which drinking gatorade would help) and by being low on potassium (which eating bananas would help). Here is some useful information on leg cramps or charley horses that I found on web md:
Though nighttime leg cramps are common, experts don't know exactly what causes them. But most of the time it is not because of illness. Some of the things that may cause leg cramps include:
Getting too much exercise or overusing the muscles.
Standing on concrete for a long time, sitting for a long time, or putting your legs in awkward positions while you sleep.
Not having enough potassium, calcium, and other minerals in your blood.
Being dehydrated, which means your body has lost too much fluid.
Taking certain medicines, such as antipsychotics, diuretics, statins, and steroids.
Having flat feet.
Having thyroid disease.
How can you stop a nighttime leg cramp when it happens?
You may need to try several different ways to stop a leg cramp before you find what works best for you. Here are some things you can try:
Walk around, or jiggle your leg.
Stretch your calf muscles. You can do this stretch while you sit or stand:
While sitting, straighten your leg and flex your foot up toward your knee. It may help to place a rolled towel under the ball of your foot and, while holding the towel at both ends, gently pull the towel toward you while keeping your knee straight.
While standing about 2ft from a wall, lean forward against the wall. Keep the knee of the affected leg straight and the heel on the ground. Do this while you bend the knee of the other leg. See a picture of how to do this calf stretch.
These exercises stretch your calf muscles, and you will probably feel the leg cramp go away after a few minutes.
Some people find that a hot shower or a warm bath helps. Others get relief by rubbing the calf with an ice pack.
How can you prevent them?
Use these tips to help prevent nighttime leg cramps:
Drink plenty of water and other fluids during the day.
Limit or avoid drinks with alcohol or caffeine. These can can make you dehydrated, which means your body has lost too much fluid.
Make sure you are eating healthy foods (especially if you are pregnant) that are rich in calcium, potassium, and magnesium.
Ride a stationary bike to condition and stretch your muscles.
Stretch your leg muscles for a few minutes before you go to bed.
Some people find that it helps to drink about 6fl oz of tonic water, which contains a small amount of quinine, each night.
If you are taking medicines that are known to cause leg cramps, your doctor may prescribe different medicines.
If your leg cramps bother you a lot, your doctor may prescribe medicines that calm leg nerves or relax the muscles.
What if nighttime leg cramps keep coming back?
Talk with your doctor if you have muscle cramps that keep coming back, are severe, or occur in other muscles of your body. These may be symptoms of another problem.