Implemented routing filter for foodcoop select.

* Allows now a multi coop installation for one domain!
* SSL, we are coming...
* TODO: Remove all the hardcoded urls, check email-links etc.
This commit is contained in:
Benjamin Meichsner 2010-03-20 02:26:30 +01:00
parent b9576dd669
commit e7af7e82b5
4 changed files with 151 additions and 105 deletions

View file

@ -1,4 +1,7 @@
ActionController::Routing::Routes.draw do |map|
map.filter 'foodcoop', :file => File.join(RAILS_ROOT, "lib", "foodcoop_filter")
map.resources :pages, :collection => { :all => :get }, :member => {:version => :get, :revert => :get}
map.wiki_page "/wiki/:permalink", :controller => 'pages', :action => 'show', :permalink => /[^\s]+/
map.wiki "/wiki", :controller => 'pages', :action => 'show', :permalink => 'Home'