Skip to content

Instantly share code, notes, and snippets.

@thejefflarson
Created November 10, 2010 23:45
Show Gist options
  • Select an option

  • Save thejefflarson/671731 to your computer and use it in GitHub Desktop.

Select an option

Save thejefflarson/671731 to your computer and use it in GitHub Desktop.
require 'action_view/helpers'
class TableFu::Formatting
class << self
include ActionView::Helpers::NumberFormatter
def without_commas(coll)
number_to_currency(col, :delimiter => " ")
end
end
end
__END__
# in yaml you can then do:
Column Name: number_to_currency
Column Name 2: without_commas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment