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.

Zach Dennis's latest activity

Friday, June 13 2008
323 has_many :through => belongs_to_association bug was updated in Ruby on Rails
  • Zach Dennis
    Zach Dennis commented at 3:18 AM

    I'm working on updating the patch to incorporate a test for eager loading. I think some refactoring will be underway since the way has many through association...

Wednesday, June 04 2008
323 has_many :through => belongs_to_association bug was updated in Ruby on Rails
  • Zach Dennis
    Zach Dennis commented at 12:05 AM

    Attached is another update to the patch to cover the below scenario:

    class Day
      belongs_to :trip
      has_many :expenses, :through => :trip
    end
    
    # - this w...
Tuesday, June 03 2008
323 has_many :through => belongs_to_association bug was updated in Ruby on Rails
  • Zach Dennis
    Zach Dennis commented at 10:21 PM

    Attached is an updated patch. Rather than relying on fixtures this patch creates what it needs inside the test. This forces the implementation to be be updated...

  • Zach Dennis
    Zach Dennis commented at 9:16 PM

    The above output is:

    SQLite3::SQLException: no such column: trips.trip_id: SELECT "expenses".* FROM "expenses" INNER JOIN trips ON expenses.trip_id = trips.id...
  • Zach Dennis
    Zach Dennis created the ticket at 9:05 PM

    If you declare a has many association through a belongs_to association it will generate invalid SQL and your database will complain.

    For example the below has...