Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Georg Ledermann's latest activity

Thursday, January 15 2009
1763 number_to_human_size fails for some values was updated in Ruby on Rails
  • Georg Ledermann
    • Tag changed from 2.2.2, helper, numberhelper, number_to_human_size to 2.2.2, helper, numberhelper, number_to_human_size, patch
    by Georg Ledermann at 10:22 PM

    Here it's little patch to fix the bug (with tests added). It's a kind of a hack, perhaps someone can find a better way to fix this.

  • Georg Ledermann
    Georg Ledermann created the ticket at 6:04 PM

    For some values, the helper method "number_to_human_size" gives a wrong result. See this examples:

    Correct:

    number_to_human_size(41500, :precision => 0)
    => "41...