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

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


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


Can you post your controller

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs