Possible Duplicate:
Best way to use Twitter Bootstrap Icons as Links in Ruby on Rails 3?
I have the following code to delete an item:
<%= link_to "delete", sense, :method => :delete,
:confirm => "You sure?" %>
How do I attach :method and :confirm to the icon-remove
used in boostrap. I want something like:
<%= link_to <i class="icon-search"></i>, sense, :method => :delete,
:confirm => "You sure?" %>
What is the correct way to do this?