public function showOrder $order Request $request return viewordersshow order = $order-loaditemsproductSku itemsproduct; 改成rails 代码
def show(order, request) @order = order.includes(items: [:product_sku, :product]) render 'orders/show' end
原文地址: http://www.cveoy.top/t/topic/ikwK 著作权归作者所有。请勿转载和采集!