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.

Oleg's latest activity

Thursday, April 15 2010
3361 accepts_nested_attributes_for and has_one relations was updated in Ruby on Rails
  • Oleg
    Oleg commented at 4:01 PM

    This is a bit messed up. I'm experiencing the same issue.

    accepts_nested_attributes_for for has_one completely skips validation on the nested element. has_many ...

Tuesday, July 01 2008
516 has_one + validation Object#create_something bug was updated in Ruby on Rails
Monday, June 30 2008
516 has_one + validation Object#create_something bug was created in Ruby on Rails
  • Oleg
    Oleg created the ticket at 8:11 PM

    Odd one I found today:

    
    class Chicken
      has_one :head
    end
    
    class Head
      belongs_to :chicken
      validates_uniqueness_of :chicken_id
    end
    
    
    
    >> @chicke...
Tuesday, June 10 2008
374 Sanitize treats & entity in URI incorrectly was updated in Ruby on Rails
  • Oleg
    Oleg commented at 3:06 PM

    +1 on this one. Annoying bug... and not something that is obvious to me how to fix.

Tuesday, May 06 2008
77 ActiveRecord: :select is wiped when doing a join was updated in Ruby on Rails
  • Oleg
    Oleg commented at 6:14 PM

    Well, damn... You are correct. :joins actually works in this case. No reason why :include shouldn't work as well though. Rather misleading thinking that they c...

  • Oleg
    Oleg commented at 3:20 PM

    Ignore my comment about eager loading being borked, I forgot I needed to do :select => 'id' as well. Issue still stands, however.

  • Oleg
    Oleg commented at 3:09 PM

    I'm bumping this again with a test

    
    class AssociationsJoinModelTest < ActiveRecord::TestCase
    
      def test_my_little_test
        p = Post.find(:all, :select =>...
Thursday, May 01 2008
77 ActiveRecord: :select is wiped when doing a join was created in Ruby on Rails
  • Oleg
    Oleg created the ticket at 3:35 PM

    First of all, a small annoying bug:

    CompanyActivitiesSummary.find(:all, :select => 'company.id, sum(active_users_count)', :group => 'company_id', :include => ...