Tuesday, September 25, 2007

helper: number_to_php

Here's a helper to convert a number to Philippine Pesos. For other currencies, just replace the symbol.


def number_to_php(amt)
return number_to_currency(amt, :unit => "PHP ")
end

No comments: