Create a redirect when editing the title of a page.

This commit is contained in:
Benjamin Meichsner 2009-06-11 23:51:26 +02:00
parent 434fc4b2ff
commit 55729e20f9
6 changed files with 36 additions and 10 deletions

View file

@ -1,7 +1,7 @@
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', :permalink => /[\w\._\-\%\d]+/
map.wiki "/wiki", :controller => 'pages', :action => 'show', :permalink => 'home'
map.wiki_page "/wiki/:permalink", :controller => 'pages', :action => 'show', :permalink => /[^\s]+/
map.wiki "/wiki", :controller => 'pages', :action => 'show', :permalink => 'Home'
map.logout '/logout', :controller => 'login', :action => 'logout'
map.my_profile '/home/profile', :controller => 'home', :action => 'profile'