The license fee to be paid and the rules regulating the riding of bicycles or other similar vehicles within any city or town shall be fixed by ordinance, and the rules regulating the use of such bicycle paths or roadways constructed or maintained within its limits and the fines and penalties for the violation of such rules shall be fixed by ordinance.