Added better routing for wiki-root-path.
This commit is contained in:
parent
0d11e68bad
commit
f83d2659de
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
ActionController::Routing::Routes.draw do |map|
|
||||
map.resources :pages, :collection => { :all => :get }
|
||||
map.wiki_page "/wiki/:permalink", :controller => 'pages', :action => 'show'
|
||||
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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue