Skip to content

Instantly share code, notes, and snippets.

@imustardsoft
Created October 15, 2011 15:27
Show Gist options
  • Save imustardsoft/1289708 to your computer and use it in GitHub Desktop.
Save imustardsoft/1289708 to your computer and use it in GitHub Desktop.
examples from rails doc
select_tag "people", options_from_collection_for_select(@people, "id", "name"), :prompt => "Select something"
# => <select id="people" name="people"><option value="">Select something</option><option value="1">David</option></select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment