Skip to content

Instantly share code, notes, and snippets.

@starrhorne
Created January 19, 2012 02:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starrhorne/1637346 to your computer and use it in GitHub Desktop.
Save starrhorne/1637346 to your computer and use it in GitHub Desktop.
<% form_for Job.new do |f| %>
#
# Here, we use a multiple select, but any forrm element named
# "job_specializations[]" will populate the jobs.specializations
# array
#
<%= f.select :specializations,
["rails", "ruby", "js", "python],
:multiple => true %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment