$$2Rb_{(s)}+Cl_{2(g)}\rightarrow 2RbCl_{(s)}$$
In this reaction, rubidium loses one electron from its outermost shell to the chlorine atom, resulting in the formation of a positive rubidium ion (Rb+) and a negative chloride ion (Cl-). These ions combine electrostatically to form rubidium chloride (RbCl), which is a stable ionic compound.