Let nested route works
This commit is contained in:
1 parent
66a462faa8
commit
9fa03db2c0
5 files changed
+22
-6
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user