In my models I define the to_s method so I can just do this in my views:
The problem is when I want to format the output of attributes in that
method. For example I want to format the attribute price to currency.
There is a nice helper method called number_to_currency. How can I use
this in my to_s method in my model?
Thanks for your help.