Currently I am storing my prices as cents. I have one major issue, it is
the way I convert this value into a decimal looking price. This is done
easily with to_f and *100).to_i, but it looks ugly and clutters my
controllers specially when updating the record. I tried with callbacks,
but it doesn’t do the trick if validation fails, as it returns the raw
values, i.e in cents.
I tried redefining price and price=, but it caused a stack too deep
problem with infinite self referential.
What’s the consensus on that? Use the Money gem? I expected to have a
nice rubyish solution to that problem.