update.ejs 196 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 // way 1 task.title = 'a very different title now' task.save().on('success', function() {}) // way 2 task.updateAttributes({ title: 'a very different title now' }).on('success', function() {})