Clean way to handle prices

Fernando,

I suggest you look at http://apidock.com/rails/ActionView/Helpers/NumberHelper/number_to_currency.

Call the helper with value.to_f * / 100

James.

james already mentioned the best way to do this, but if that doesn't
match your requirements, just write your own helper-method. stuff like
that is not done inside the controller.