master
1module My
2 class KitchensController < BaseController
3 def show
4 @tags = Tag.unique_tags
5 @cakes = current_user.creations.includes(:category, :photos, :tags, :tag_taggings)
6 @tutorials = current_user.tutorials.includes(:tags, :tag_taggings)
7 @photos = Photo.where(imageable: @cakes)
8 end
9 end
10end