Skip to content

Instantly share code, notes, and snippets.

@patrickberkeley
Created August 7, 2008 08:55
Show Gist options
  • Save patrickberkeley/4373 to your computer and use it in GitHub Desktop.
Save patrickberkeley/4373 to your computer and use it in GitHub Desktop.
<select name="product[tag_ids][]">
<option></option>
<%= options_from_collection_for_select(tag.children, "id", "name") %>
</select>
<select name="product[tag_ids][]">
<%= options_from_collection_for_select(tag.children, "id", "name", {:include_blank => true}) %>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment