Skip to content

Instantly share code, notes, and snippets.

@axilaris
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

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

Select an option

Save axilaris/9615678 to your computer and use it in GitHub Desktop.
function addItemRowHTML(offsetidentifiervalue)
{
$node = ' \
<%= select_tag "currency",
options_for_select(Country.all.each_with_index.map {
|country, index|
[country["currency_code"],
country["currency_code"]]},
@invoice["data"]["currency"] ),
:style => "width:120px"
%> \
';
}
$node =' \
<%= select_tag "currency", \
options_for_select(Country.all.each_with_index.map { \
|country, index| \
[country["currency_code"], \
country["currency_code"]]}, \
@invoice["data"]["currency"] ), \
:style => "width:120px" \
%> \
';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment