_active_record_post_comments.html.erb
<%= render post.comments %>
<% if (user_signed_in? && current_user != User.find(post.blogger_id)) %>
<%= render partial: "blogit/comments/form", locals: { post: post, comment: comment } %>
</div>
<% end %>
_form.html.erb
<%= form_for [post, comment], remote: true,
html: {
class: “new_blog_comment”, id: “new_blog_comment” } do |f| -%>
error:
ActionView::Template::Error (undefined local variable or method `post’ for #<#Class:0x007f606c7b4818:0x007f607eeeb278>
Did you mean? @post):
1:
2: <%= form_for [post, comment], remote: true,
3: html: {
4: class: “new_blog_comment”, id: “new_blog_comment” } do |f| -%>