Category List
<% @categories.each do |category| %> <% end %>
Category Name
<%= category.catname %>
<%= link_to 'Edit', edit_category_path(category) , class: "btn btn-primary btn-xs" %> <%= link_to 'Trash', category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
<%= link_to 'New Category', new_category_path, class: "btn btn-primary" %>