From 01fc4e05139ba687e5155ffbba9bbfcce99967ee Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 5 Feb 2020 10:44:41 +0000 Subject: [PATCH] Add Spree::CheckoutController only to redirect to CheckoutController I have not managed to make the spree checkout route, that paypal express uses, go to CheckoutController directly. According to the rails docs "to: '/checkout#edit'" should do it, but it doesnt work here. --- app/controllers/spree/checkout_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/controllers/spree/checkout_controller.rb diff --git a/app/controllers/spree/checkout_controller.rb b/app/controllers/spree/checkout_controller.rb new file mode 100644 index 0000000000..97fe2c20f9 --- /dev/null +++ b/app/controllers/spree/checkout_controller.rb @@ -0,0 +1,8 @@ +module Spree + class CheckoutController < Spree::StoreController + def edit + flash.keep + redirect_to main_app.checkout_path + end + end +end