blob: 278c5ab174fe3503e32169317c09fcfb807c6a5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class ContentController < ApplicationController
def render_page
path = params[:page_path].join('/')
@page = Node.find_page(path)
# Replace with real 404
unless @page
render(
:file => File.join(RAILS_ROOT, 'public', '404.html'),
:status => 404
)
end
end
end
|