Is there a way to have rails print out a number with commas in it?
For example, if I have a number 54000000.34, I can run <%= number.function %>, which would prin
new syntax
number_with_delimeter(@number, delimeter: ",")
If you you want to user delimeter for money then you can do
number_to_currency(@number)
this will add $ too. If you are using money gem then you can do
Money.new(@number,"USD").format
This will also put $.
number_with_delimiter
ruby money
number_to_currency