I am getting a ’ undefined method error ’ when update a comment.

NoMethodError (undefined method `comments’ for nil:NilClass):

Hello,

Would be quite helpful if you provide more information. Meanwhile, take a look here: Ruby error: undefined method for nil:NilClass

Hello,

Can you post your controller