Skip to content

Instantly share code, notes, and snippets.

@staycreativedesign
Created June 3, 2020 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staycreativedesign/17e9c66ef06326478d7167c9d3012354 to your computer and use it in GitHub Desktop.
Save staycreativedesign/17e9c66ef06326478d7167c9d3012354 to your computer and use it in GitHub Desktop.
= form_tag "/admin/users/#{:id}/edit", method: :get do
.row
.col-sm-12.col-md-9
= select_tag :id, options_from_collection_for_select(User.all, 'id', 'name',{ prompt: 'Find User' }), class: 'form-control select2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment