diff --git a/app/controllers/product_controller.rb b/app/controllers/product_controller.rb index b7227f5..9655a42 100644 --- a/app/controllers/product_controller.rb +++ b/app/controllers/product_controller.rb @@ -12,7 +12,11 @@ class ProductController < ShopController def show @product = Product.where('slug = ?', params[:id]).first raise_404(@product) - render layout: false + respond_to do |format| + format.html + format.js + end + end private diff --git a/app/views/product/partials/_products_thumbnails.html.erb b/app/views/product/partials/_products_thumbnails.html.erb index 24cc183..5b7a28c 100644 --- a/app/views/product/partials/_products_thumbnails.html.erb +++ b/app/views/product/partials/_products_thumbnails.html.erb @@ -9,20 +9,20 @@