<%= link_to "Edit", [:edit, parent, item], class: "btn btn-mini btn-primary" %> <%= link_to "Delete", [parent, item], class: "btn btn-mini", confirm: 'Are you sure?', method: :delete %>