Sha256: bf448f58174cab931146733e97c6eaad8bc2549d5fac445d39c2a31ee70ad1f5
Contents?: true
Size: 1.33 KB
Versions: 8
Compression:
Stored size: 1.33 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, :except => [:new, :create] 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
8 entries across 8 versions & 1 rubygems