class AuctionsController < ApplicationController def index # @auctions = Auction.find(:all, :conditions => ["datetime >= ?", Time.now]) @auctions = Auction.find(:all) 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