code :
Area
<%= f.select :area_id, Area.all.collect {|p| [ p.name, p.id ] }, :class=>“small” %>
Milk Mans
<%= f.select :milkman_id, Milkman.all.collect {|p| [ p.name, p.id ] }, :class=>“small” %>
When i select any area then i should see only those milkmans of that area.
Till now i getting all milkmans in my select box.
How to do this with Ajax ?
Hope u will understand question now ?