class ItemsController < ApplicationController def index redirect_to :controller => 'welcome' end def list @category = Category.find(params[:id]) end def show @item = Item.find(params[:id]) end def image @image = Image.find(params[:id]) render :layout => 'popup' end end