Reputation: 1560
I have table for state and country with association like country has many states
.
I want to build a state select tag based on country select. Like nested select tags without any gems or plugins. Is any helper method presents to perform above task.I don’t want JavaScript stuff here.
Upvotes: 0
Views: 462
Reputation: 1798
If you want to populate your state
dropdown based on what is there in the country
dropdown, you have to use javascript. There is no other way.
Upvotes: 1