search for: instantac

Displaying 1 result from an estimated 1 matches for "instantac".

Did you mean: instantan
2006 Apr 06
1
drop down menu - getting @params[:id] value.
I am looking to get my option drop down list to populate from a model. In my controller i''m using: @roles = Role.find(:all, :order => "name") in my view I have: <%= collection_select(:id, :name, @roles, :id, :name) %> role <%= submit_tag("Go") %> I cannot get just the id of the selected option. If i inspect the params I get: