Only riding makes you fit for riding. Measure your riding in hours per week. When you've been riding say 5 hours/week for several months, you're sort of in shape. At about 10 hours/week, you're in good shape. After a year's layoff, it takes about a year to get it back. That's the reason I never take more than 2 weeks off.