Hi all,
I want to do like following,
I have Zone dropdown list, which contain West Zone, South Zone etc. when i select a value from this, i want to display all the regions in the selected zone in Region dropdown.
What I have done is something like this, but it is not working good for me
<select id="zone_id" name= "zone[id]" onchange="<%= remote_function(:url => { :action => :showR }) %>">
<!-- <select id="zone_id" name= "zone[id]" onclick="" >--> <% @r= Zone.find_by_sql("select id,ZONE_ZoneName from zones")%> <% for item in @r %> <option value= "<%= item.id %>"><b><%= item.ZONE_ZoneName -%></b></
<% end %> </select>
This calling the controller but the selected parameters are not pass to the controller
I am doing this way.
Is there any other way to do this? please help me, I am new to ROR
Thanks and Regards, Shripad