Re: [Rails] Overriding number_to_human (Rails 3.0.5)

2011-11-01 Thread Jim Ruther Nill
On Wed, Oct 26, 2011 at 10:23 PM, cipher_neo l33...@gmail.com wrote: I encountered a problem today, in that the number_to_human helper has a defect where it spits out an error when passed any number bigger than 0 and less than 1. eg number_to_human(0.2) gives nil can't be coerced into fixnum

Re: [Rails] Overriding number_to_human (Rails 3.0.5)

2011-11-01 Thread cipher_neo
yes, that seems to have done the job, thanks! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/OU2B4X8HpiQJ. To post to this group, send email to

[Rails] Overriding number_to_human (Rails 3.0.5)

2011-10-26 Thread cipher_neo
I encountered a problem today, in that the number_to_human helper has a defect where it spits out an error when passed any number bigger than 0 and less than 1. eg number_to_human(0.2) gives nil can't be coerced into fixnum So, I found this patch: