 <p>Try changing it to this;</p> <pre><code>&lt;% @events.each do |e| %&gt; &lt;%= link_to '&lt;i class=icon-trash&gt;&lt;/i&gt;'.html_safe, account_show_path(@context, @event), :confirm =&gt; 'Are you sure?', :method =&gt; :delete %&gt; &lt;% end %&gt; </code></pre> <p>Make sure you have the following in your header;</p> <pre><code>&lt;%= javascript_include_tag 'application', 'data-turbolinks-track' =&gt; true %&gt; &lt;%= csrf_meta_tags %&gt; </code></pre>