Added version control for wiki pages.

This commit is contained in:
Benjamin Meichsner 2009-05-15 17:32:45 +02:00
parent 7ba6bc3680
commit 053c665270
36 changed files with 1647 additions and 15 deletions

View file

@ -1,5 +1,5 @@
ActionController::Routing::Routes.draw do |map|
map.resources :pages, :collection => { :all => :get }
map.resources :pages, :collection => { :all => :get }, :member => {:version => :get, :revert => :get}
map.wiki_page "/wiki/:permalink", :controller => 'pages', :action => 'show'
map.wiki "/wiki", :controller => 'pages', :action => 'show', :permalink => 'home'