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.

Bernardo Padua's latest activity

Thursday, April 01 2010
4306 number_with_precision raises error if 0 is passed and :significant is true was updated in Ruby on Rails
  • Bernardo Padua
    Bernardo Padua commented at 5:20 AM
  • Bernardo Padua
    Bernardo Padua created the ticket at 5:07 AM

    I found a bug in my own patch. When passing 0 to number_with_precision (and other helpers that rely on it), if :significant => true, an error (since it tries to...

Monday, March 22 2010
4239 [PATCH] Improvements in number_helper.rb was updated in Ruby on Rails
  • Bernardo Padua
    Bernardo Padua commented at 7:46 PM

    Hi,

    I finally added support for html_safe throughout NumberHelper methods. The updated patch follows (there are two commits, one for the previous improvements, ...

Saturday, March 20 2010
4239 [PATCH] Improvements in number_helper.rb was updated in Ruby on Rails
  • Bernardo Padua
    Bernardo Padua commented at 9:36 PM

    Ops, me one more time!

    I just figured out rails 3 will have this html_safe thing (I wasn't aware, since I am still working with 2.3), and most of the outputs fr...

  • Bernardo Padua
    Bernardo Padua commented at 8:44 PM

    I just discovered there was a line/hack in number_to_currency which wasn't doing anything useful (its probably from when it didn't rely on number_with_precision...

  • Bernardo Padua
    Bernardo Padua commented at 8:21 PM

    Thanks for the nice feedback, José and Jeremy. Following some suggestions by José (exchanged in portuguese, I won't bother printing them here... :)), I refactor...

Friday, March 19 2010
4239 [PATCH] Improvements in number_helper.rb was updated in Ruby on Rails
  • Bernardo Padua
    • Assigned user set to José Valim
    by Bernardo Padua at 10:11 PM

    BTW, somebody please close #1340 as it looks like it was already fixed.

  • Bernardo Padua
    Bernardo Padua commented at 10:02 PM

    Here is the patch (with ticket update keyword).

  • Bernardo Padua
    Bernardo Padua created the ticket at 9:40 PM

    Hi all,

    I've made several small refactorings and added some new functionality to the existing number helpers (especially number_to_human_size and number_with_pr...

Tuesday, November 04 2008
1289 Regression in date_select between 2.1.1 and 2.2 RC1 was updated in Ruby on Rails
  • Bernardo Padua
    Bernardo Padua commented at 2:46 AM

    Sorry for the ugly formatting, I don't think code highlighting worked very well.