From 61def8f2e7626f5a9b0fe2de56f16107ee62a7d7 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 8 May 2019 15:43:00 +0100 Subject: [PATCH] Convert match routes to get routes to be compatible with rails 4 --- config/routes.rb | 2 +- config/routes/spree.rb | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 0429de5dfe..b7ec2a3105 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -27,7 +27,7 @@ Openfoodnetwork::Application.routes.draw do get "/cart", :to => "spree/orders#edit", :as => :cart put "/cart", :to => "spree/orders#update", :as => :update_cart put "/cart/empty", :to => 'spree/orders#empty', :as => :empty_cart - match '/orders/:id/token/:token' => 'spree/orders#show', :via => :get, :as => :token_order + get '/orders/:id/token/:token' => 'spree/orders#show', :as => :token_order resource :cart, controller: "cart" do post :populate diff --git a/config/routes/spree.rb b/config/routes/spree.rb index 2d524791f4..4fbf5ad05f 100644 --- a/config/routes/spree.rb +++ b/config/routes/spree.rb @@ -89,15 +89,15 @@ Spree::Core::Engine.routes.prepend do resources :products - match '/locale/set', :to => 'locale#set' + get '/locale/set', :to => 'locale#set' resources :states, :only => :index resources :countries, :only => :index # route globbing for pretty nested taxon and product paths - match '/t/*id', :to => 'taxons#show', :as => :nested_taxons + get '/t/*id', :to => 'taxons#show', :as => :nested_taxons - match '/unauthorized', :to => 'home#unauthorized', :as => :unauthorized - match '/content/cvv', :to => 'content#cvv', :as => :cvv - match '/content/*path', :to => 'content#show', :via => :get, :as => :content + get '/unauthorized', :to => 'home#unauthorized', :as => :unauthorized + get '/content/cvv', :to => 'content#cvv', :as => :cvv + get '/content/*path', :to => 'content#show', :as => :content end