blob: 5312ecdb8d9efac87effbccaa9d24ed83738d902 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
|