I have the following link_to delete url in my app
<%=link_to \"Delete\",blog_path(@blog.id), :method => :delete, :class => \"delete\", :confirm =>
If you're using restful routing for blogs, then the following should work:
<%= link_to "Delete", @blog, :method => :delete, :confirm => "Are you sure ?"%>