<div id="<%= dom_id category %>">
  <h1><%= category.name %></h1>

  <p>
    <strong>Description:</strong>
    <%= category.description %>
  </p>

  <p>
    <strong>Image:</strong>
    <%= link_to category.image.filename, category.image if category.image.attached? %>
  </p>

  <% if products.present? %>
    <h2>Products in this Category</h2>
    <ul>
      <% products.each do |product| %>
        <li><%= product.name %> - $<%= product.price %></li>
      <% end %>
    </ul>
  <% else %>
    <p>No products available in this category.</p>
  <% end %>
</div>