AJAX Combo with Ruby on

Hi,
i would have create self filter combo boxes in Ruby on Rails (state,
country, city) just like in this example:
http://mudabone.com/aietc/?p=411. I tried the code of tutorial and
failed.
Someone already has tried the code of the tutorial and has resolved?
There are other solutions?
thanks