module My class KitchensController < BaseController def show @tags = Tag.unique_tags @cakes = current_user.creations.includes(:category, :photos, :tags, :tag_taggings) @tutorials = current_user.tutorials.includes(:tags, :tag_taggings) @photos = Photo.where(imageable: @cakes) end end end