class AuctionsController < ApplicationController caches_page :index, :show, :item, :image def index @auctions = Auction.find(:all) respond_to do |format| format.html format.rss { render :layout => false } format.json { render :json => @auctions } format.xml { render :xml => @auctions } end end def show @auction = Auction.find(params[:id]) end def item @item = AuctionItem.find(params[:id]) render :layout => 'popup' end def image @image = Image.find(params[:id]) render :layout => 'popup' end end