That's simply not true. That's a very modern interpretation of the second amendment.
The /NRA/ lobbied for some of the first gun control laws in SanFran, because the Black Panthers were open carrying. Even in the days of the 'wild west' there were plenty of towns and cities with enforced gun control ordinances.