import Ember from 'ember';

export default Ember.Route.extend({
  actions: {
    removeMember: function(problem) {
      var adapter = this.store.adapterFor('problem');
      console.log(adapter);
      adapter.ajax("https://api.parse.com/1/classes/Problem/" + problem.id, 'PUT', {
        data: {
          'member1': {"__op":"Delete"}
        }
      }).then(function(response){
        console.log(response);
      });
    }
  }

});

import Ember from 'ember';

export default Ember.Route.extend({
  model: function() {
    return this.store.findAll('problem');
  },
  actions: {
    removeMember: function(problem) {
      var adapter = this.store.adapterFor('problem');
      console.log(adapter);
      adapter.ajax("https://api.parse.com/1/classes/Problem/" + problem.id, 'PUT', {
        data: {
          'member1': {"__op":"Delete"}
        }
      }).then(function(response){
        problem.set('member1', null);
      });
    }
  }

});

Add problem.set call in removeMember ajax callback to set store value to null (without saving) so data on page simulates Parse data
Add problem.set call in removeMember ajax callback to set store value to null (without saving) so data on page simulates Parse data
