app/views/spud/admin/posts/index.html.erb in spud_blog-0.9.11 vs app/views/spud/admin/posts/index.html.erb in spud_blog-1.0.0.rc1
- old
+ new
@@ -32,10 +32,10 @@
Approved: <%=link_to post.visible_comments.count, spud_admin_post_post_comments_path(:post_id => post.id) %>
<br/>
Spam: <%=link_to post.spam_comments.count, spud_admin_post_post_comments_path(:post_id => post.id) %>
</td>
<td align="right">
- <%= link_to 'Delete', spud_admin_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'btn btn-danger' %>
+ <%= link_to 'Delete', spud_admin_post_path(post), :method => :delete, :data => {:confirm => 'Are you sure you want to delete this post?'}, :class => 'btn btn-danger' %>
</td>
</tr>
<%end%>
</tbody>
</table>