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.

Hery's latest activity

Sunday, November 15 2009
3484 [Rails 2.3.4 and prior] validates_uniqueness_of fails with non STI inheritance was updated in Ruby on Rails
  • Hery
    Hery commented at 10:18 PM

    IMHO the expected behavior is a unique login in the students table only.

    I know it is a bad design since Mixin should be used instead of inheritance but I just ...

Thursday, November 12 2009
3484 [Rails 2.3.4 and prior] validates_uniqueness_of fails with non STI inheritance was created in Ruby on Rails
  • Hery
    Hery created the ticket at 10:01 AM

    Hi,
    I've found this issue when using class inheritance but non-STI

    class User < ActiveRecord::Base
      validates_uniqueness_of :login
    end
    
    class Student < User
     ...
Tuesday, July 21 2009
2933 2.3.2 update_attributes save many-to-many associations was created in Ruby on Rails
  • Hery
    Hery created the ticket at 5:12 PM

    Hi,

    I use ruby 1.8.7 and Rails 2.3.2

    update_attributes

    Updates all the attributes from the passed-in Hash and saves the record. If the object is invalid, the ...

Saturday, May 30 2009
2742 class method to_s used instead of name was created in Ruby on Rails
  • Hery
    Hery created the ticket at 3:33 PM

    Hi,
    Here is an issue/improvement/suggestion

    When defining a to_s class method for my models it breaks rails, especially in active_record.
    active_record uses bot...