Delete link behaviour lost when I regenerate HTML. How can I handle this? <p>If I regenerate a Rails delete link on my page, something like the following:</p> <pre><code>&lt;a href="/categories/19" data-method="delete" data-confirm="Are you sure?" ..&gt;Link&lt;/a&gt; </code></pre> <p>When this page loads, something in Rails must set the behaviour of this link as I get a nice "Are you sure?" before I commit to delete something. However, when I regenerate the HTML I'm guessing I need to re-initialize the behaviour but I'm not sure where this comes from. Can anyone tell me if there is a function I should call again after I generate this HTML link? Thanks</p>