search for: rosters_attributes

Displaying 1 result from an estimated 1 matches for "rosters_attributes".

2011 May 19
1
update_attributes updates data from second instance of nested form but not the first
Got a weird situation with an update put to a controller with a form with nested attributes. On the data below, I am updating data for both items (''0'' and ''1'') in rosters_attributes (in the example below I am updating the ''name'' attribute to a new value in both cases. What I am stuck on is that ''1'' gets its data updated, regardless of what field I update, while ''0'' does not get updated regardless of the field. However, upd...