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
<% @r= Zone.find_by_sql("select id,ZONE_ZoneName from zones")%>
<% for item in @r %>"><%= item.ZONE_ZoneName -%> <% end %>
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,