Listing categories
<% @categories.each do |category| %>
- <%= category.name %>
<%= link_to 'Destroy', category, confirm: 'Are you sure?', method: :delete %>
<%= link_to 'Edit', edit_category_path(category) %>
<% end %>
<%= link_to 'New Category', new_category_path %>