diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb index ddef7ba..c2cc583 100644 --- a/app/views/products/index.html.erb +++ b/app/views/products/index.html.erb @@ -4,23 +4,23 @@

+
+ <%= render @products %> +
<% @categories.each do |o, i| %> -
+
<%= render @products.where(category: i) %>
<% end %> -
- <%= render @products %> -