Hearts of the West (1975)
Hearts of the West is a 1975 comedy film directed by Howard Zieff, and starring Jeff Bridges, Andy Griffith, Blythe Danner, and Alan Arkin. The story revolves around a wannabe 1930s writer who finds himself cast as a leading man in several B-movie westerns.
More at Wikipedia.