Error "can't convert Fixnum into String" when Math.log() is called by number_to_human_size() method of Rails
-
Josh Rendek
Aditya,
I was hoping to take a stab at fixing this (tried before mailing the list) but I wasn't sure where to even start looking -- I poked around in webroar_profiling but wasn't able to come up with anything substantial that fixed the bug. Do you have any pointers so I can help with this?
Josh
-
Aditya Babbar
- State changed from open to resolved
Josh,
We have fixed this issue and pushed the changes to Github repository. Could you please pull the latest code and try out your application on it?We had defined one method called log using rb_define_singleton_method() and it was conflicting with the built-in method with the same name (log) called by Math.log invoked by number_to_human_size. We have renamed our method to log_message to prevent this collision.
Thanks for reporting this issue and offering to look in to it!
Aditya
-
Josh Rendek
Awesome! Worked perfectly now when I cloned from the git repo. Can't wait to start using this in production :).
Regards,
Josh
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.