When I load the parameters that are in another table update one by one
This is the code, in the parameters I have an arrangement:
@ordenes_servicio.update(ordenes_servicio_params)
parameters
def ordenes_servicio_params
params.require(:ordenes_servicio).permit(:ID,
:PKTIPO_AUTO, :PKMARCA, :OS_AUX_DESCRIPCION, :OS_AUX_REQTRASLADO, :OS_AUX_NOTAS,:OS_FOLIO_ELECTRONICO,:OS_FALLAMECANICA,
:ordenes_servicio_precios_attributes => [ :id, :ID, :OS_ID, :selector_servicio,:PKSERVICIO, :OSP_PRECIO, \
:OSP_CANTIDAD, :OSP_SUBTOTAL, :OSP_TAX, :OSP_TOTAL,:OSP_PRECIOC, :OSP_SUBTOTALC, :OSP_TAXC, :OSP_TOTALC, :_destroy])
end
Thank you in advance.