RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: goravbhootra
I need to show Country and State on a form with values coming from two separate table with association set. I don't want to hide State drop-down instead populate it with values based on Country ID 1 which is populated in country drop-down by default. Presently when I load the form, State drop-down shows all the States grouped under Country. On Country change, State filters the values and populates correctly. Issue is on form load when Jquery Country change is not triggered. How do I achieve it?
Also, based on these selections, I want to show a nested model form - lets Users from particular city based on State selection.
Any guidance in the direction will also be highly appreciated.