From 9c655a855e8bb1ad5c0d763a9180d1c1ae5b85da Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 13 Mar 2014 11:47:55 +1100 Subject: [PATCH] Redirecting to the shop page when a distributor is selected --- app/controllers/enterprises_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/enterprises_controller.rb b/app/controllers/enterprises_controller.rb index d4b6ade04b..d9c285206a 100644 --- a/app/controllers/enterprises_controller.rb +++ b/app/controllers/enterprises_controller.rb @@ -67,7 +67,7 @@ class EnterprisesController < BaseController order.order_cycle = order_cycle_options.first if order_cycle_options.count == 1 order.save! - redirect_to main_app.enterprise_path(distributor) + redirect_to main_app.shop_path end # essentially the new 'show' action that renders non-spree view