Friday, 23 August 2013

Rails How to output negative numbers from Postgress

Rails How to output negative numbers from Postgress

I am having a small problem. outputting the minus sing from the database.
I cheeked the field and the value is "Solid Door -10°F Freezers"
When i go to out put the value it comes out like "Solid Door 10°F
Freezers" i think its funny how the ° but not the - Now i am not doing
anything special just
<%= model.field %>
I tried to do
<%= raw model.field %>
but nothing is its not really html
Thanks for the help

No comments:

Post a Comment