%-
province = '440000'
city = '440300'
district = '440305'
street = '440305001'
provinces = ClwyChinaCity.list
cities = ClwyChinaCity.list(province)
districtes = ClwyChinaCity.list(city)
streets = ClwyChinaCity.list(district)
%>
Rails Helper
<%= select_tag :province, options_for_select(provinces, province) , prompt: '--省份--', class: ['city-select', 'city-province'] %>
<%= select_tag :city , options_for_select(cities, city) , prompt: '--城市--', class: ['city-select', 'city-city'] %>
<%= select_tag :district, options_for_select(districtes, district), prompt: '--地区--', class: ['city-select', 'city-district'] %>
<%= select_tag :streets , options_for_select(streets, street) , prompt: '--街道--', class: ['city-select', 'city-street'] %>
HTML