Tuesday, 17 September 2013

How to output currency symbols with Prawn?

How to output currency symbols with Prawn?

I am trying to output currency symbols in Prawn with a helper method like
this:
def price(number)
@view.number_to_currency(number, :unit => "€")
end
I then use it like this:
price(@invoice.total)
Unfortunately it's not working and instead of € I get € in my PDF
documents.
(The same number_to_currency function works great outside of Prawn by the
way.)
Can anybody help?

No comments:

Post a Comment