class PagesController < ApplicationController
def show
@page = Page.find_by_name(params[:page_name])
if @page
render :text => @page.content
else
render :text => '404 not found'
end