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.

Josh Sharpe's latest activity

Thursday, July 02 2009
2852 accepts_nested_attributes_for creating new associated record when one already... was updated in Ruby on Rails
  • Josh Sharpe
    Josh Sharpe commented at 8:35 PM

    I just want to quickly reiterate, to be really clear -- this issue only applies to has_one relations.

    That said, passing :id as the option to decide whether or ...

  • Josh Sharpe
    Josh Sharpe commented at 4:31 PM

    There are tests that explicitly test for this behavior making me think this is not a bug.

    See nested_attributes_test.rb:

    def test_should_not_replace_an_existin...
Monday, June 29 2009
2852 accepts_nested_attributes_for creating new associated record when one already... was updated in Ruby on Rails
  • Josh Sharpe
    • Tag changed from 2-3, accepts_nested_attributes_for, has_one, stable to 2-3, accepts_nested_attributes_for, has_one
    by Josh Sharpe at 2:40 PM
  • Josh Sharpe
    Josh Sharpe created the ticket at 2:20 PM

    I'm seeing that updating nested attributes is creating additional rows for the nested object:

    class Profile < ActiveRecord::Base
      has_one :address
      accepts_n...