For this I use the number_to_currency formater. Since I am in the US the defaults work fine for me.
<% price = 45.9999 %>
<%= number_to_currency(price)%>
=> $45.99
You can also pass in options if the defaults don't work for you.
Documentation on available options at api.rubyonrails.org