Created
November 13, 2008 17:25
-
-
Save cassiomarques/24516 to your computer and use it in GitHub Desktop.
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
def to_select_sym_tag(choices, options, html_options) | |
choices = symbolize_values(choices).sort {|a, b| a <=> b} | |
to_select_tag(choices, options.merge(:prompt => "Escolha..."), html_options) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment