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
@@ -10,7 +10,7 @@ class PagesController < ApplicationController
end
def show
@page = Page.find_by_name(params[:page_name])
@page = Page.find_by_full_name(params[:page_name].join("/"))
render_liquid_page
end