Displaying 1 result from an estimated 1 matches for "autopilot_engag".
Did you mean:
autopilot_engaged
2012 Aug 13
10
Question about PATCH method, accepts_nested_attributes_for, and updates to association lists (has_many, HABTM)
...alled Airplane and Airplane has a
collection of FlightCrewMembers which it accepts_nested_attributes_for. You
get the Airplane resource via a RESTful call to Rails that contains the
FlightCrewMembers list. Then something needs to make a PATCH to this
resource and change both an attribute called autopilot_engaged on the
Airplane while only changing the active_pilot flag of one of the
FlightCrewMembers. You send this together to ensure that a single
transaction is wrapped around both the update to autopilot_engaged on the
Airplane and the active_pilot flag of one of the FlightCrewMembers.
When you sen...