How to use Ajax

code :

<%= :area_id, Area.all.collect {|p| [, ] },
:class=>“small” %>
Milk Mans
<%= :milkman_id, Milkman.all.collect {|p| [, ] },
:class=>“small” %>

When i select any area then i should see only those milkmans of that
Till now i getting all milkmans in my select box.

How to do this with Ajax ?

Hope u will understand question now ?

is any one know this

On Tue, Sep 25, 2012 at 8:07 AM, Fahim P. [email protected] wrote:

is any one know this

Stop. This is basic JavaScript/AJAX stuff, and has little to nothing to
do with Rails.

Find a tutorial on JS/AJAX and learn how it works. Then come back
here if you have a specific problem integrating it with your Rails code.

Hassan S. ------------------------ [email protected]

twitter: @hassan