content_viewer_controller.rb 283 Bytes
class ContentViewerController < PublicController

  needs_profile

  def view_page
    path = params[:page].clone
    path.unshift(params[:profile])
    @path = path.join('/')
    @page = Article.find_by_path(@path)
    if @page.nil?
      render_not_found(@path)
    end
  end

end