Form select item with a pre-selection

Hola soy nuevo en Rails. Tengo 3 modelos relacionados y tengo un formulario donde el usuario elige un país a continuación, debe elegir una ciudad que pertenece a ese país. ¿Cómo puedo hacer para que usted pide las ciudades de los países seleccionados por orden alfabético presentados previamente en el formulario y el usuario puede elegir los

The easiest way would be to use jQuery to create the city element in the form after the user selects the country, which will require you to either use jQuery to hit an internal API that sends back a JSON string or to send out one big ass JSON string with all the information already in it. Check out .change() | jQuery API Documentation and jQuery.getJSON() | jQuery API Documentation