Skip to content

Instantly share code, notes, and snippets.

@brunoziie
Created April 11, 2014 19:29
Show Gist options
  • Save brunoziie/10494618 to your computer and use it in GitHub Desktop.
Save brunoziie/10494618 to your computer and use it in GitHub Desktop.
exemplo select rails
<%=
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