<p style="color: green"><%= notice %></p>

<%= render partial: "category", locals: { category: @category, products: @products } %>

<div>
  <%= link_to "Edit this category", edit_category_path(@category) %> |
  <%= link_to "Back to categories", categories_path %>

  <%= button_to "Destroy this category", @category, method: :delete %>
</div>
