Nice thought, that stops short of the full solution. Example: rail guns cannot put anything into orbit.
Lasers would be the best choice. Rail guns would be a good solution in low gravity/thin atmo situations. When I wrote that I wasn't thinking about the problems with using rail guns out of a deep gravity well with dense atmo. I assume that is why you say rail guns can't put anything into orbit.