Let nested route works

This commit is contained in:
Wen-Tien Chang committed 2010-02-11 16:46:20 +08:00
1 parent 66a462faa8
commit 9fa03db2c0
5 files changed
+22 -6

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ ActionController::Routing::Routes.draw do |map|
# Note: These default routes make all actions in every controller accessible via GET requests. You should
# consider removing the them or commenting them out if you're using named routes and resources.
map.page ':page_name', :controller => 'pages', :action => 'show'
map.page '*page_name', :controller => 'pages', :action => 'show'
#map.connect ':controller/:action/:id'
#map.connect ':controller/:action/:id.:format'