these particular problem is just when i hit the reply link
NoMethodError in Comments#new Showing E:/Projects/app/app/views/comments/_form.html.erb where line #1 raised:
undefined method `comments_path' for #ActionView::Base:0x00000000026a70 Did you mean? font_path Extracted source (around line #1): <%= form_with(model: comment, local: true) do |form| %> <% if comment.errors.any? %>
<ul>
@wcurzor my suggestion is to start looking over the Replies section of the article to see if you have everything as the article. One thing to check if you have the remote: true set in the file below. That would be the only "gotcha" that I can see.
remote: true
# app/views/comments/_comment.html.erb <%= comment.body %> <%= link_to 'reply', new_post_comment_path(@post, parent_id: comment.id), remote: true, class: 'd-block' %> </div>
Here is the completed app.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
these particular problem is just when i hit the reply link
NoMethodError in Comments#new
Showing E:/Projects/app/app/views/comments/_form.html.erb where line #1 raised:
undefined method `comments_path' for #ActionView::Base:0x00000000026a70
Did you mean? font_path
Extracted source (around line #1):
<%= form_with(model: comment, local: true) do |form| %>
<% if comment.errors.any? %>
<%= pluralize(comment.errors.count, "error") %> prohibited this comment from being saved:
@wcurzor my suggestion is to start looking over the Replies section of the article to see if you have everything as the article. One thing to check if you have the
remote: true
set in the file below. That would be the only "gotcha" that I can see.Here is the completed app.