Deleting comments on blog posts causes NoMethodError
Closed this issue · 1 comments
kirichkov commented
When I click on "delete" at the list of comments for a blog post, I get a NoMethodError
I think this is easily fixed by adding ':remote => true' in the view.
In app/views/admin/blog/comments/_comment.html.erb line 8 is:
<%= link_to 'Delete', admin_blog_comment_path(comment), :method => 'delete', :confirm => 'Are you sure?' %>
but instead should be:
<%= link_to 'Delete', admin_blog_comment_path(comment), :method => 'delete', :confirm => 'Are you sure?', :remote => true %>
This fixes the issue for me
GBH commented
Closing ticket as blog is completely rewritten for work with Rails 4 and CMS 1.10