Remove deprecated about_us page and add redirect

This commit is contained in:
Rohan Mitchell
2015-06-26 16:33:29 +10:00
parent 3f8235593a
commit d67b34c2bd
2 changed files with 1 additions and 5 deletions

View File

@@ -7,7 +7,4 @@ class HomeController < BaseController
@num_users = Spree::User.joins(:orders).merge(Spree::Order.complete).count('DISTINCT spree_users.*')
@num_orders = Spree::Order.complete.count
end
def about_us
end
end

View File

@@ -6,6 +6,7 @@ Openfoodnetwork::Application.routes.draw do
get "/enterprises/:permalink", to: redirect("/")
get "/products", to: redirect("/")
get "/t/products/:id", to: redirect("/")
get "/about_us", to: redirect(ContentConfig.footer_about_url)
get "/#/login", to: "home#index", as: :spree_login
get "/login", to: redirect("/#/login")
@@ -115,8 +116,6 @@ Openfoodnetwork::Application.routes.draw do
end
end
get "about_us", :controller => 'home', :action => "about_us"
namespace :open_food_network do
resources :cart do
post :add_variant