Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Input Select Box for Rails
<div class="field">
<%= f.label "Select Sub City" %>
<% new_york_sub_cities = %w(manhattan bronx kings queens staten) %>
<%= select("store", "city", new_york_sub_cities.collect {|p| [ p, p ] }, {include_blank: ''}) %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.