Sorry if this isn't an appropriate use of the board, I haven't really
been around too long or been too involved.
I never found a solution for changing integers to words that I liked.
I know the ruby linguistics gem does it, but that was overkill for
what I needed so I pulled this together, and it seemed more
lightweight and more flexible than the other solutions I had come
across.
Also, I generally don't venture outside of the basic rails coding
patterns, so it was a bit of a challenge to myself to make something
different. Feel free to use the code, or provide any feedback as to
how I could make it better. I have it as an extension to the Integer
class in ActiveSupport, but it'd be easy to move it to a helper.
http://github.com/farski/rails/commit/300d58063bc4b5d0460307f35259bd2ebc3762d2
I'm thinking about adding support for decimals as well, but not today.
also, it's fun to type in really big numbers and see how they are
called.