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.

mattwestcott's latest activity

Saturday, May 24 2008
142 belongs_to association not updated when assigning to foreign key was updated in Ruby on Rails
  • mattwestcott
    mattwestcott commented at 2:44 PM

    Following up on the possibility of overriding []= / write_attribute too - it looks like this isn't feasible. Various activerecord internals (such as the belong...

Tuesday, May 20 2008
142 belongs_to association not updated when assigning to foreign key was updated in Ruby on Rails
  • mattwestcott
    mattwestcott commented at 2:57 PM

    My motivation for this was being able to assign city_id in a mass assignment from a form post, and therefore avoid having to explicitly handle City objects in ...

Thursday, May 08 2008
142 [PATCH] belongs_to association not updated when assigning to foreign key was created in Ruby on Rails
  • mattwestcott
    mattwestcott created the ticket at 10:06 AM

    When using a belongs_to association, assigning to the foreign key attribute doesn't update the associated object (or mark a previously loaded

    one as stale) un...