Skip to content

Instantly share code, notes, and snippets.

@cassiomarques
Created November 13, 2008 17:25
Show Gist options
  • Save cassiomarques/24516 to your computer and use it in GitHub Desktop.
Save cassiomarques/24516 to your computer and use it in GitHub Desktop.
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