drhenner/ror_ecommerce

View on GitHub
app/views/admin/merchandise/brands/show.html.erb

Summary

Maintainability
Test Coverage
<%= render partial: '/admin/merchandise/sub_header'%>

<h3>Brand - <%= @brand.name %></h3>

<p>
  <strong>Name:</strong>
  <%= @brand.name %>
</p>

<p>
  <%= link_to "Edit", edit_admin_merchandise_brand_path(@brand), class: 'button' %>
  <%= link_to "Delete", admin_merchandise_brand_path(@brand), data: { confirm: 'Are you sure?' }, method: :delete, class: 'button' %>
  <%= link_to "New Brand", new_admin_merchandise_brand_path, class: 'button' %>
  <%= link_to "View All", admin_merchandise_brands_path, class: 'button' %>
</p>