diff --git a/app/controllers/products_controller.rb b/app/controllers/products_controller.rb index 17f0899..ec7b916 100644 --- a/app/controllers/products_controller.rb +++ b/app/controllers/products_controller.rb @@ -14,6 +14,7 @@ class ProductsController < ApplicationController def index @products = Product.all + @categories = Product.categories end def edit diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 60f5119..2cd2a64 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -40,7 +40,7 @@