Skip to content

Instantly share code, notes, and snippets.

@DanCoughlin
Created June 20, 2012 20:38
Show Gist options
  • Save DanCoughlin/2962066 to your computer and use it in GitHub Desktop.
Save DanCoughlin/2962066 to your computer and use it in GitHub Desktop.
multi select options
no worky
<%= f.select "resource_type", options_for_select(ScholarSphere::Application::config.resource_types, @generic_file.resource_type), {}, {:multiple=>true, :size=>7} %>
worky
<%= f.select "resource_type", options_for_select(ScholarSphere::Application::config.resource_types, [@generic_file.resource_type.first, @generic_file.resource_type.last]), {}, {:multiple=>true, :size=>7} %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment