I have a dropdownmenu which populates from the database. I’m using the following code to do it:-
<%= collection_select(:abc, :SkillSetName, @technologies, :id, :Topic) %>
I have no idea what :abc and :SkillSetName are doing here. I just know that the drop down is being populated with :Topic from my @technologies variable. I want to save the selection made by the user from the drop down menu and send it to the next controller action. I don’t want to use f.collection_select
If you don’t know what
:abcand:SkillSetNameare, how are we supposed to know?Anyway, the user’s selection will be in:
If you want to understand what you are doing, have a look at the API for
collection_select.