blob: bb7a806a5541751f0650cae8c2f55b90d80cc14b (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|