Best way to develop dynamic dropdowns


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
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
the best way to do it.

I have this example as reference :
PullMonkey Blog » Blog Archive » Dynamic Select Boxes – Ruby on Rails 3 .
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

Hello adolfo,

Here is another option, it is Ryan B.’ railscasts, some of his
episodes are free and on others you pay a monthly subscription of

I think this just gives you another option.