diff options
Diffstat (limited to 'app/controllers/my/kitchens_controller.rb')
| -rw-r--r-- | app/controllers/my/kitchens_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/my/kitchens_controller.rb b/app/controllers/my/kitchens_controller.rb index 54f36e1c..bb7a806a 100644 --- a/app/controllers/my/kitchens_controller.rb +++ b/app/controllers/my/kitchens_controller.rb @@ -2,8 +2,9 @@ module My class KitchensController < BaseController def show @tags = Tag.unique_tags - #@cakes = current_user.creations.includes(:category, :photos, :tags, :tag_taggings) + @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 |
