Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created March 18, 2014 04:28
Show Gist options
  • Select an option

  • Save axilaris/9613579 to your computer and use it in GitHub Desktop.

Select an option

Save axilaris/9613579 to your computer and use it in GitHub Desktop.
<%= select "invoice_product_code", "invoice_product_code",
@invoice_product_array.each_with_index.map {
|jsondata, index|
[jsondata["invoice_product_code"],
jsondata["invoice_product_code"]]},
{:selected => item["invoice_product_code"]},
:style => "width:110px"
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment