class PagesController < ApplicationController def show @page = Page.find_by_url('/' + params[:path].join('/')) render :file => 'public/404.html', :status => 404 unless @page end def contact if Mailer.deliver_contact(params[:contact]) redirect_to '/contact-received' else render :action => show, :id => Page.find_by_url('/contact-us').id end end def sitemap @pages = Page.find(:all) @auctions = Auction.find(:all) @items = Item.find(:all) render :layout => false end end