Created
August 30, 2017 11:54
-
-
Save Guri-ksolves/05c1ee889073722bcc592a061ce6bbc5 to your computer and use it in GitHub Desktop.
ruby Tags for select dropdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%=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