ActiveModel::ForbiddenAttributesError
Extracted source (around line #3):
def create
@post = Post.find(params[:post_id])
@comment = @post.comments.create!(params[:comment])
redirect_to @post
end
Rails.root: C:/Users/ManU/Desktop/quick_blog
Application Trace | Framework Trace | Full Trace
app/controllers/comments_controller.rb:4:in `create'
我应该做些什么来处理这个错误......