szetobo
Not a member
szetobo's latest activity
Thursday, July 08 2010
-
-
- Assigned user cleared.
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...
-
- 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
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...
-
szetobo commented at 10:18 AMWe 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 commented at 8:13 AMBy 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
-
szetobo commented at 7:44 AMIf 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
-
szetobo created the ticket at 12:10 PMWhen 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
-
szetobo commented at 2:20 AMI 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
-
szetobo created the ticket at 11:14 AMThe models schema and its association is like this :-
ActiveRecord::Schema.define(:version => 20100219043257) do create_table "policies", :force => true do |...