I am having a small problem creating a link.
My view:
<%= link_to 'slet', blog_comments_path(c.blog, c), :confirm => 'Er du sikker?', :method => :delete %>
Output:
http://localhost:3000/blogs/5/comments.6
Where it should by:
http://localhost:3000/blogs/5/comments/6
blog_comments_pathis the route for all comments for a blog. if you want just a comment, you have to useblog_comment_path(check withrake routes, I might be wrong with the syntax. But you get the idea.)