Alright, here. My long awaited reply
Anyway, there are 2 types of railguns. One is where you have 2 long bus bars that a conducting piece of metal "slides" down. The magnetic fields in the bus bars and the magnetic field of the projectile interact to force the projectile out the barrel of the gun. This is the type that most people refer to as it scales well ( read: megawatts ) It is possable to shoot a projectile though over 20 feet of reinforced concrete with such a device. What basicly happens in this type of gun, is power flows from one bus bar ( which could be many many feet long ) across the projectile ( projectile must conduct or it will not work ) and then into the second bus bar. as the projectile moves down the bus bars it gains speed, while keeping in contact with both bus bars. If too much power is applied, or in the wrong way, the projectile will weld itself to the bus bars.
The second is the type I helped build. We built it in college for physics. Yes we were crazy. Imagine a solonid. A piece of metal is surounded by a wire wrap. This is what pulls down the lock in your car. The one in your car produces up to about 50 lbs of force while only pulling 3-4a @ 12v while being a little over an inch long. Now imagine one that is 10 feet long, pilling 90a @ 240v. Basicly, it was a long reinforcedplastic tube 1/4" in diameter. That tube is wrapped with a version of magnet wire. ( thin wire of 18-22 gauge. we used 18 ) The Magnet wire is wrapped from one end to the other around the pipe. Multiple singles are wound so that you end up with a parallel system. We found that a single raises the resistance past what we wanted it. We had "a large number" of passes, and ended up using over 15k feet of magnet wire. ( That crap is expensive too ). As for the power source, it was just 240v wall current. Well, not wall, it was right from the science labs transformer where the 480 was stepped down to 240.
We used a solonid and a momentary push button switch to trigger the device. Someone smarter than me set it up so that the windings would recieve current just when the waveform of the 240v crossed into + voltage on the AC side, and would automaticly shut off when it hit - voltage. Basicly the power was flowing for 3 tenths of a second. If we kept it powered ( which we did on accident twice ) the projectile would richoet back and forth inside the tube. On good shots we could pierce a red clay brick ( the same type used on your house ) or shatter a cinderblock. The shots were VERY repeatable, but we had to let the device cool or risk melting the tube the wire was wrapped around.
The projectile was a simple 16 penny casing nail. ( 3 1/2 " long )