Inaccessible
Inaccessible

Reputation: 1560

Nested select tag in Rails

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

Answers (1)

pungoyal
pungoyal

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

Related Questions