Fixed multi coop routing and changed config accessors.

This commit is contained in:
benni 2012-08-24 19:52:38 +02:00
parent 2860a3ca44
commit ec2e761e7f
28 changed files with 124 additions and 88 deletions

View file

@ -6,9 +6,9 @@ Foodsoft::Application.routes.draw do
get "sessions/new"
root :to => redirect("/#{Foodsoft.env}")
root :to => redirect("/#{FoodsoftConfig.scope}")
scope '/:foodcoop', :defaults => { :foodcoop => Foodsoft.env } do
scope '/:foodcoop' do
# Root path
root :to => 'home#index'