content_viewer_controller.rb 293 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 class ContentViewerController < ApplicationController def view_page path = params[:page].clone path.unshift(params[:profile]) @path = path.join('/') @page = Article.find_by_path(@path) if @page.nil? render :action => 'not_found', :status => 404 end end end