First parameter should be the name of the dropdown with options HTML being second:
<%= select_tag “cuisine_id”, options_from_collection_for_select(@cuisines, “name”, “id”) %>
First parameter should be the name of the dropdown with options HTML being second:
<%= select_tag “cuisine_id”, options_from_collection_for_select(@cuisines, “name”, “id”) %>
You can do something like this:
select_tag('new_member',
options_for_select(['']+@group.logins_not_in_group))
As you see you can add blank ('') as a new option.
Richard wrote:
Jinal Jhaveri wrote:
You can do something like this:
select_tag('new_member',
options_for_select(['']+@group.logins_not_in_group))As you see you can add blank ('') as a new option.
perfect dude! I was looking exactly for this