1id10t said:
I stretch for a couple of minutes before a ride and try to stretch after a ride.
Stretching
before a ride is not doing anything beneficial for you. Stretching
after a ride is helpful in preventing cramping and muscle soreness, but probably will not help in your case. If you were cramping within hours after a ride, stretching after a ride might help, but because you are cramping after a few days rest, I do not think stretching after a ride will help. Daily stretching, especially on days in which you do not ride, might help.
The other serious cause for cramping that was not covered in the page referenced by mikesbytes is circulatory insufficiency. These cramps, though, usually start in the calf and start while riding. They usually subside shortly after stopping. They are most likely to happen in smokers and in men over the age of 50. If the cramps occur only at rest, then it is highly unlikely that they are related to circulatory problems.
People who take the "statin" (e.g., Lipitor, Crestor, Zocor, etc) or "fibrate" (e.g., Tricor, Lopid, etc) classes of cholesterol lowering drugs are at a higher risk for muscle pain. This pain is different from cramping, but if you had never experienced either type of pain before, it might be possible to confuse the two. Muscle pain from these drugs is not common, but if it does occur, it could be a sign of a more serious problem (rhabdomyolysis), so if you are on one of these drugs and experience muscle pain, you should get checked out by your doctor.