I wish to have an option in my application where user can select a value from Combo Box shown in a page and on clicking of button this is passed as parameters to another controller. There will be 4 combo boxes on the selection page. I am using select_tag to populate data from database
Something like
Town <%= select_tag(:town, "<option>-Select a Town</option>" + options_from_collection_for_select(@towns, :NAME, :NAME)) %>
Can you please suggest what is the method to do it ? I am not able to find some clear guidelines for the same, I am new to web development so maybe I am searching at wrong place.