You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
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
Jordon Bedwell
unread,
Jan 21, 2014, 11:37:21 AM1/21/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 http://api.jquery.com/change/ and
http://api.jquery.com/jquery.getjson/