i'm trying to write an app to keep track of expenses and invoices etc.
for my small business. it's mainly an excuse to learn ROR but in doing
so i've hit upon a problem: money. I need to store monetary values in
the database (MySQL) which I believe you would normally use decimal
type for. My understanding is that rails is going to support that in
the next version with Active Record but doesn't currently. Also using
floats is to be avoided due to rounding errors.
So what does one do in the mean time? I found a money gem
http://rubyforge.org/projects/money/ with no real documentation (I'm
looking for worked examples to learn from). or a do-it-yourself method
This seems like such a simple problem I can't believe I've spent so
long trying to solve it - can somebody please tell me an easy way to do