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.

Hugo Peixoto's latest activity

Sunday, August 09 2009
1715 AR:Base mangles dates when user submits only part of the fields was updated in Ruby on Rails
  • Hugo Peixoto
    Hugo Peixoto commented at 7:35 AM

    -1 for the patch, as it breaks two of the current tests.

    Throws an ActiveRecord::MultiparameterAssignmentErrors exception when the day is set "", because it tri...

1218 :path_names could be used to customize collection actions too was updated in Ruby on Rails
  • Hugo Peixoto
    Hugo Peixoto commented at 6:32 AM

    I've attached a patch that contains Nicolas's code and that adds tests and documentation.

1255 time.end_of_day not entirely accurate was updated in Ruby on Rails
  • Hugo Peixoto
    Hugo Peixoto commented at 4:27 AM

    +1 for the idea, but the patch doesn't apply to 2-3-stable. I've attached a patch that works. It was probably due to all the recent commits or something.

2582 [PATCH] ActionView::TextHelper Graceful Truncate was updated in Ruby on Rails
  • Hugo Peixoto
    Hugo Peixoto commented at 3:34 AM

    +1 The patch applies cleanly on 2-3-stable and the tests pass.

2883 Diacritics break validates_uniqueness_of on MySQL was updated in Ruby on Rails
  • Hugo Peixoto
    Hugo Peixoto commented at 2:53 AM

    OK, I did what I mentioned in the previous comment. I've attached a patch.

  • Hugo Peixoto
    Hugo Peixoto commented at 2:25 AM

    OK, I found the problem. But I need to be advised on how to proceed.

    The "é" characters on the test case I provided (provode? :p) are in UTF-8.
    The databases ar...

Saturday, August 08 2009
2503 validates_uniqueness_of is horribly inefficient in mysql was updated in Ruby on Rails
  • Hugo Peixoto
    Hugo Peixoto commented at 11:34 PM

    +1 on the idea. But the patch does not apply to 2-3-stable. I've attached a patch that ports Phil's code to this branch.

1819 TableDefinition.column ignores :limit for integer types was updated in Ruby on Rails
  • Hugo Peixoto
    Hugo Peixoto commented at 10:54 PM

    In mysql, I'm able to create a table with int(20):

    mysql> create table test(id int(20));
    mysql> show columns from test;
    +-------+---------+------+-----+-------...
2883 Diacritics break validates_uniqueness_of on MySQL was updated in Ruby on Rails
  • Hugo Peixoto
    Hugo Peixoto commented at 10:30 PM

    I verified that this issue occurs in 2-3-stable. I've attached a test that currently fails when I run:

    rake test_mysql TEST=test/cases/validations_test.rb

    on th...