Skip to content

Instantly share code, notes, and snippets.

@joncalhoun
Created January 1, 2015 20:58
Show Gist options
  • Save joncalhoun/f7def41760702d3fc209 to your computer and use it in GitHub Desktop.
Save joncalhoun/f7def41760702d3fc209 to your computer and use it in GitHub Desktop.
Quick demo of country select in a user.
<div class="form-group #{attribute.errrors? ? "has-error" : ""}">
<label for="#{attribute.form_id}">
<%= attribute.label_name %>
</label>
<%= country_select("user", "country", selected: attribute.value) %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment