Skip to content

Instantly share code, notes, and snippets.

@superscott
Created March 4, 2013 20:39
Show Gist options
  • Save superscott/5085435 to your computer and use it in GitHub Desktop.
Save superscott/5085435 to your computer and use it in GitHub Desktop.
remove formatting on numbers.
Example:: v.first == "1,000" or v.first == "$15,000.00"
<td>
<div>
<span title=<%= !v.first.nil? ? v.first.gsub(',', '') : nil %>></span>
<% v.each do |col_value| %>
<%= col_value %>
<% end %>
</div>
</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment