EmberJS: How to update model attributes
问题 I've got a list of messages that are provided by a Rails backend. What I need is when the "toggle_visibility" action button is pressed, it would toggle the "publicly_viewable" property. This means, making a corresponding REST call (to effect the database) and changing the state of the corresponding cached message. Here is where I'm at so far. Here's what I've got so far, that manages to end up on the debug console: # app.js App.Store = DS.Store.extend({ revision: 12, adapter: DS.RESTAdapter