summaryrefslogtreecommitdiff
path: root/app/controllers/content_controller.rb
blob: 8059faba5b957ff3edbb6d3b84429f67189a66b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class ContentController < ApplicationController

  def render_page
    path = params[:page_path].join('/')
    
    @node = Node.find_by_unique_name(path)
    
    # Replace with real 404
   render :status => 404 unless @node
  end

end