The concept of a rail gun has been around for a long time. On a ship, using a metal slug, pushed by plasma, can be devastating when used to breech armor.
Major comet and meteor explosions were due less to the components that make up the projectile (which is usually ice), but the energy of the object as it strikes the earth. The same is true with rail technology. If you take a small metal slug and propel it really fast, it does tremendous damage. The same concept went into the development of the M16 infantry rifle. The Soviets developed the AK-47, which was very reliable, and used a fairly large caliber bullet. And while that slug can do a lot of damage when it hits a human body, the inventors of the M16 discovered that if you use a smaller slug, propelled at a higher velocity, it does more damage than a larger slug at a lower velocity.
The old, huge naval guns on destroyers and battleships use powdered explosives as propellants. Often times, as in WWII, when a hit was taken on a powder room, the resulting explosion often crippled the ship. Not too long ago - in the mid- to late 80s - a peacetime incident occurred where the powder inside a gun turret was ignited, killing several sailors.
So, a rail gun has some distinct advantages.
I believe that the Germans during WWII first investigated rail guns. The Soviets looked into rail gun technology, as did Saddam Hussien (in fact, in the 1991 Gulf War we shut down a rail gun development facility as well as one or more long-distance cannons that could be used to lob projectiles as far as Europe). In the 1980s, rail guns became mainstream technology during the SDI (or "Star Wars") program, as a possible means to intercept and destroy missiles. At that time they showed more promise than the laser technology that was is now also coming into its own.
Undoubtedly, rail guns will be ridiculed by the media and anti-military types as being ineffective, not as effective as standard cannons, problematic, and so on.
I remember the flap about the Phalanx anti-aircraft systems in the 70s and 80s, about how they were boondoggles, and complete failures. I think they're still in use today, and can take out anti-ship missiles before they hit their targets. Again, this failure of a system was "exposed" by the likes of "60 Minutes" back in the 1970 / 1980s.
I also remember when the Abrams tank first came out - one of the first tanks with a turbine engine - and it was said (on 60 minutes, no less) that this type of tank would never last in a desert warfare situation. If you'll remember, it was the M1A1 Abrams that eliminated Saddam Hussien's entire armored forces in about 45.23 milliseconds.
The media and Hollywood had a field day with the Bradley Fighting Vehicle, with all of its supposed problems and flaws. Allegedly, it was a deathtrap. My friend who was a front-line vet in the 1991 Gulf War claimed it was the best infantry support vehicle the US military ever had.
Then there was SDI, mockingly called "Star Wars" by its critics. Not only had it produced an effective rail gun and laser-based anti-missile system, it also produced the Patriot Missile System, which effectively stopped any number of SCUD missiles during Gulf War I.
I could go on, but I think you get the point.