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:
parent
b9576dd669
commit
e7af7e82b5
4 changed files with 151 additions and 105 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue