app/views/categories/show.html.erb
<% title "Category" %>
<p>
<strong>Active:</strong>
<%= @category.active %>
</p>
<p>
<strong>Name:</strong>
<%= @category.name %>
</p>
<p>
<strong>Billing Code:</strong>
<%= @category.billing_code %>
</p>
<p>
<%= link_to "Edit", edit_category_path(@category) %> |
<%= link_to "Destroy", @category, confirm: 'Are you sure?', method: :delete %> |
<%= link_to "View All", department_categories_path(@department) %>
</p>