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 ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/OsY_rB0kCg8J. For more options, visit https://groups.google.com/groups/opt_out.