I have a partial `_table_row` this partial holds my html for the output of `@admin_products.all`

In this partial I have a soft delete button which initiates a twitter bootstrap popover, this popover has the hard delete button for the record from the database.

To get the button into the popover currently I've included the HTML content in the partial `_table_row` this as you can imagine repeats the HTML by the number of records in my database.

What I'm trying to achieve is to keep the HTML for the popover in `index.html.erb` and to dynamically add the destroy button into the popover with the correct ID. This is where I'm having difficulty. 

I've tried to use

```
$('.deleteButton').popover({
    html: true,
    content: $('#popoverDestroy').html() + <%= link_to 'Delete', admin_product, method: :delete, class: 'btn btn-danger destroyButton', remote: true %>,
    placement: 'left'
});

```

But as you can understand it will fail as it doesn't know what admin\_product is, how would you associate it correctly?