Forum: Ruby on Rails BEST WAY TO DEVELOP DYNAMIC DROPDOWNS

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
863c3ec5febe5e37f821ff25738c2afc?d=identicon&s=25 adolfo igualada (Guest)
on 2013-03-11 10:37
(Received via mailing list)
Hi,

I have these models : Country, State, City . Each of these model has a
dropdown, when i select a country i want to populate state acording to
the
selected country and also city with state selection.

I know that to do this i have to use jquery/ajax , but i dont know wich
is
the best way to do it.

I have this example as reference :
http://pullmonkey.com/2012/08/11/dynamic-select-bo... .
Is
this a good option to do it?


Wich way do you consider is the best to do it?

Thank you in advance.


Version of Rails 3.2.12
1af79014396f3e7a246260cf47000078?d=identicon&s=25 Tom T. (tom_t)
on 2013-03-11 14:05
(Received via mailing list)
Hello adolfo,

Here is another option, it is Ryan Bates' railscasts, some of his
episodes are free and on others you pay a monthly subscription of
$9.00:

http://railscasts.com/episodes/88-dynamic-select-menus

I think this just gives you another option.
This topic is locked and can not be replied to.