Skip to content

Instantly share code, notes, and snippets.

@Guri-ksolves
Created August 30, 2017 11:54
Show Gist options
  • Save Guri-ksolves/05c1ee889073722bcc592a061ce6bbc5 to your computer and use it in GitHub Desktop.
Save Guri-ksolves/05c1ee889073722bcc592a061ce6bbc5 to your computer and use it in GitHub Desktop.
ruby Tags for select dropdown
<%=form_for @order_item, url: list_link, remote: true, html: { id: "dropdown_item_form", class: "orderDate" } do |f| %>
<%= f.select :product_id, @products.map{|p| [p.name, p.id] }, { prompt: "select product" }, id: "search_id", class: "selectbox" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment