rails/jquery-rails

Missing delegate event

honeypc opened this issue · 1 comments

The function "delegate" not binding event to "linkClickSelector" when I using:

<% @list.each do |item| %>
//todo
<%= link_to glyphicon("trash", "Disable"), { :action => 'delete', :id => 1 }, :confirm => 'Are you sure?', :method => :post %>
<% end %>

I have tried copy all $document.delegate into $document.ready it work fine. Let me know any solution for fix that
My jquery library version 1.7.1

Can you please provide a sample application that reproduces the error?