Change wiki-parser again. Now wikitext is used.

This commit is contained in:
Benjamin Meichsner 2009-06-11 22:40:56 +02:00
parent eddf20b063
commit 434fc4b2ff
6 changed files with 43 additions and 30 deletions

View file

@ -1,6 +1,6 @@
ActionController::Routing::Routes.draw do |map|
map.resources :pages, :collection => { :all => :get }, :member => {:version => :get, :revert => :get}
map.wiki_page "/wiki/:permalink", :controller => 'pages', :action => 'show'
map.wiki_page "/wiki/:permalink", :controller => 'pages', :action => 'show', :permalink => /[\w\._\-\%\d]+/
map.wiki "/wiki", :controller => 'pages', :action => 'show', :permalink => 'home'
map.logout '/logout', :controller => 'login', :action => 'logout'