class method ActiveRecord.Model.create
ActiveRecord.Model.create(attributes) → Object
var u = User.create({
name: 'alice',
password: 'pass'
}); u.id //will now contain the id of the user
ActiveRecord.Model.create(attributes) → Object
var u = User.create({
name: 'alice',
password: 'pass'
}); u.id //will now contain the id of the user