Ruby: Day 3
In my third day of Ruby, I finally learned how to add CSS to documents. I continue to be amazed by just how darned easy Ruby is. My only problem came when trying to fill out the syntax for formatting numbers.
I finally realized that to change the format of numbers, the following works:
<?php
= number_to_currency(product.price, {:unit => "£", :separator => ","})
?>My major goof was that I was not putting the {} inside of the (). Instead, I was ending the parenthesis and then starting the brackets. This resulted in a very annoying error. But, all is well now, and tomorrow I will get to learn about sessions.



