select boxes for country and state

Hello

I've a user model which I would like to assign a state and municipal.

Can some one tell me how should I do that?

I tried "Dynamic Select Boxes" solution, but I couldn't get the expected solution.

I also tried #88(railscast) Dynamic Select Menus, but the event is not triggered.

Many thanks