保存されたモデルの ID を取得しようとしています
var newBookmark = bookmarks.create(values,{
success:function(){
console.log('Successfuly saved')
console.log(idOfThisModel) //need id from the server here
this.close()
},
error: function(){console.log('error, didnt save')},
})
モデルのIDを成功メソッドに取得するにはどうすればよいですか?