Added pry to gemfile. Ajax handles save failure too (and added validation to prevent blank comments).