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.

This project is archived and is in readonly mode.

Not able to use block-setting of attributes via association

#248

Perhaps this could be viewed as a feature request, but it seemed like a bug to me. On Rails Edge, you can't set attributes with a block if you do so through an association. Please refer to the attached patch with a failing test case. My apologies, but I'm just not familiar enough with the Rails internals to create a proper patch that would add the functionality.

Reported by Trevor Turk · May 23rd, 2008 @ 10:06 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Ryan Bates
  2. Trevor Turk
    Trevor Turk

    Awesome - thanks, Ryan!

    I've tagged this ticket with the "patch" keyword, so hopefully it'll get picked up.

    May 23rd, 2008 @ 11:24 PM

  3. Repository
    Repository
    • State changed from new to resolved

    (from [6cba97d2a449faf21aec9fe9d4434067e414226f]) Create through associations can now work with blocks.

    Signed-off-by: Michael Koziarski

    [#248 state:resolved]

    http://github.com/rails/rails/co...

    May 24th, 2008 @ 07:35 AM