I am using Stripe and getting currency that is in pennies. So 12.90 looks like 1290. I want to convert this to U.S. Currency but if I try and use the number_to_currency method it ends up looking like 1,290.00. Is there a method to convert the full string to currency so it comes out correctly at 12.90?
My current code is:
<h4>Total Payment Due: <%= number_to_currency(@user.total_cost)%>