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.

szetobo's latest activity

Thursday, July 08 2010
5053 child/grandchild associations reload from db after nested attributes assignment was updated in Ruby on Rails
  • szetobo
    • Assigned user set to Neeraj Singh
    by szetobo at 11:53 AM
  • szetobo
    • Assigned user cleared.
    by szetobo at 11:52 AM

    I'm working on edge version. Nested attributes for edge version also broken badly. Apps migrate from 2.3.5 just broken without major code changes, especially on...

  • szetobo
    • Title changed from child/grandchild associations reload from db upon validation error for nested attributes to child/grandchild associations reload from db after nested attributes assignment
    by szetobo at 7:52 AM

    I agree with Neeraj that it should not need to reload before every nested_attributes assignment. It is sometimes very difficult to issue reload statement for ev...

4830 Updates to relationship resources are lost was updated in Ruby on Rails
  • szetobo
    szetobo commented at 10:18 AM

    We have a form to edit master-child-grandchild record at the same time using nested_attributes. When the form submit, I call master.update_attributes(params[:ma...

  • szetobo
    szetobo commented at 8:13 AM

    By looking into the test case, the protected function :load_target must be called using send(:load_target) in order to retrieve the association collection toget...

Wednesday, July 07 2010
5053 child/grandchild associations reload from db upon validation error for nested... was updated in Ruby on Rails
  • szetobo
    szetobo commented at 7:44 AM

    If I call reload before assigning attributes, it seems that @ship.parts[0].name and @ship.parts.first.name behave the same. You are correct that the issue is re...

Tuesday, July 06 2010
5053 child/grandchild associations reload from db upon validation error for nested... was created in Ruby on Rails
  • szetobo
    szetobo created the ticket at 12:10 PM

    When validating fails on updating record by nested attributes, the child/grandchild associations collection will be reload from database.

      @ship = Ship.create...
Thursday, February 25 2010
4001 nestedattributes for has_one and has_many association has different saving se... was updated in Ruby on Rails
  • szetobo
    szetobo commented at 2:20 AM

    I use Policy as a centralize model to preform all the validation and saving logic to ensure the integrity of the whole policy. Initially I put all related model...

Friday, February 19 2010
4001 nestedattributes for has_one and has_many association has different saving se... was created in Ruby on Rails
  • szetobo
    szetobo created the ticket at 11:14 AM

    The models schema and its association is like this :-

    ActiveRecord::Schema.define(:version => 20100219043257) do
      create_table "policies", :force => true do |...