Sha256: 9711a373cd4757804719ea7261a2bb7de5a2fb04cb4fc0900a460e34a6ee3dea
Contents?: true
Size: 1.31 KB
Versions: 7
Compression:
Stored size: 1.31 KB
Contents
Spree::Core::Engine.routes.draw do root :to => 'home#index' resources :products match '/locale/set', :to => 'locale#set' resources :states, :only => :index resources :countries, :only => :index # non-restful checkout stuff put '/checkout/update/:state', :to => 'checkout#update', :as => :update_checkout get '/checkout/:state', :to => 'checkout#edit', :as => :checkout_state get '/checkout', :to => 'checkout#edit' , :as => :checkout populate_redirect = redirect do |params, request| request.flash[:error] = Spree.t(:populate_get_error) request.referer || '/cart' end get '/orders/populate', :via => :get, :to => populate_redirect match '/orders/:id/token/:token' => 'orders#show', :via => :get, :as => :token_order resources :orders do post :populate, :on => :collection end get '/cart', :to => 'orders#edit', :as => :cart put '/cart', :to => 'orders#update', :as => :update_cart put '/cart/empty', :to => 'orders#empty', :as => :empty_cart # route globbing for pretty nested taxon and product paths match '/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 end
Version data entries
7 entries across 7 versions & 1 rubygems