Created
April 11, 2014 19:29
-
-
Save brunoziie/10494618 to your computer and use it in GitHub Desktop.
exemplo select 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
<%= | |
select_tag(:city_id, options_for_select([ | |
['Lisbon', 1], | |
['Madrid', 2] | |
], 2 | |
)) | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment