emberjs/data — Issue #44: UpdateRecord
Author: frodsan
Created: 2012-01-17 01:12:27+00:00
State: open

Hi, i'm trying tu update a record in this way:

```coffeescript
if value
project = Lazier.selectedProjectController.content
project.set('name')
Lazier.store.commit() # updateRecord?
```

The update works in Rails (I'm having a "WARNING: Can't mass-assign protected attributes: id" message, i don't know if this is the problem), but, I'm getting the next JavaScript error:

```
Maximum call stack size exceeded
metaember.js:1
w_get
get
DS.Model.Ember.Object.extend.unknownProperty
Ember.wrap.newFunc
w_get
get
DS.Model.Ember.Object.extend.unknownProperty
Ember.wrap.newFunc
```
What is the best way to update a record?

Thanks :)