From a34c18451cd8f569517ad670b7bc01b73fb90e3d Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 3 Sep 2020 23:14:51 +0100 Subject: [PATCH] Add spree helper --- app/controllers/checkout_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index 4d7638fc50..e49460f680 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -211,10 +211,10 @@ class CheckoutController < Spree::StoreController def update_succeeded_response respond_to do |format| format.html do - respond_with(@order, location: order_path(@order)) + respond_with(@order, location: spree.order_path(@order)) end format.json do - render json: { path: order_path(@order) }, status: :ok + render json: { path: spree.order_path(@order) }, status: :ok end end end