Whedon has also written for The Andy Griffith Show , The Dick Van Dyke Show and Leave It To Beaver . Whedon also wrote for The Great Gildersleeve , The Andy Griffith Show , The Dick Van Dyke Show and Leave It to Beaver .