Commissioned in the Corps of Light Artillery, he was assigned to the
1st U.S. Artillery Regiment in 1821 when that branch was reorganized into regiments. He served in various garrisons in New England and at
Fort Monroe, Virginia, and on assignment with the
Corps of Topographical Engineers. He was promoted first lieutenant in 1826 and became the adjutant of his regiment in 1833. In February 1835, Ramsay was promoted captain, in which grade he was to serve for 26 years while commanding several arsenals and during his subsequent service in the
Mexican–American War. He won a brevet majority for gallantry in the Mexican War and served as Chief Ordnance Officer of the
Army of Occupation commanded by
Major General Zachary Taylor. He returned to peacetime responsibilities as the commandant of several arsenals until assigned to serve on the Ordnance Board on the eve of the
Civil War. With the coming of that conflict, his rise, heretofore glacial, was relatively meteoric. He was made a major in April 1861, a lieutenant colonel in August of that same year, and a colonel in June 1863. When in September 1863, Ramsey was named to replace Brigadier General
James Ripley as
Chief of Ordnance, he was serving as Commandant of the
Washington Arsenal. A friend of President Lincoln's, he was selected for his new post over the objections of Secretary of War
Edwin M. Stanton, who had previously been irritated by Ramsay's independence, and who preferred the appointment of Captain George T. Balch. A compromise was reached, though without Ramsay's knowledge. He was promoted to brigadier general and Chief of Ordnance, but Balch was given substantive charge of the Office, Chief of Ordnance. This increasingly unhappy arrangement continued for a year, during which time the policies of Ramsay's predecessor were followed virtually without alteration. == Dates of rank ==