%- if controller_name == 'products' && current_user && current_user.admin? %> <%= link_to "Edit", edit_product_path(product), class: "btn btn-default" %> <%= link_to "Delete", product_path(product), method: :delete, class: "btn btn-danger", data: {confirm: 'Are you sure?'} %> <% end -%> <%- if controller_name == 'users' %>