class ItemsController < ApplicationController def index @category = Category.find(params[:category_id]) end def show @item = Item.find(params[:item_id]) end end