Last active
August 29, 2015 13:57
-
-
Save lelandsmith/9442081 to your computer and use it in GitHub Desktop.
Input Select Box for Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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