search for: flightcrewmemb

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

Did you mean: flightcrewmember
2012 Aug 13
10
Question about PATCH method, accepts_nested_attributes_for, and updates to association lists (has_many, HABTM)
...included in Rails 4, but have a question/concern, and forgive me if I''m misunderstanding it. So, if the request parameter _method is set to "patch", the update is processed as a patch. But, let''s say you have a model called 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 acti...