content_viewer_controller.rb 300 Bytes
class ContentViewerController < ApplicationController

  def view_page
    path = params[:page].clone
    path.unshift(params[:profile])
    @path = path.join('/')
    @page = Comatose::Page.find_by_path(@path)
    if @page.nil?
      render :action => 'not_found', :status => 404
    end
  end

end