var QuestAnswerView = Backbone.View.extend({
  el: "#view",

  tagName: "div",

  events: {
    "click .btn.submit-answer":   "save"
  },

  initialize: function() {
    //this.listenTo(this.model, "change", this.render);
    this._modelBinder = new Backbone.ModelBinder();
  },

  render: function() {
    this.$el.html(AnswerTpl.render({answer: this.model.attributes}));
    this._modelBinder.bind(this.model, this.el);
    console.log('Answer Rendered');
    return this;
  },

  save: function(){
    return this.model.save('questionID','value', {
      success: function(){ alert('Answer Submitted!'); }, 
      error: function(){ alert('Error while saving Answer'); }
    });
  }
});
var QuestAnswerView = Backbone.View.extend({
  el: "#view",

  tagName: "div",

  events: {
    "click .btn.submit-answer":   "save"
  },

  initialize: function() {
    //this.listenTo(this.model, "change", this.render);
    this._modelBinder = new Backbone.ModelBinder();
  },

  render: function() {
    this.$el.html(AnswerTpl.render({answer: this.model.attributes}));
    this._modelBinder.bind(this.model, this.el);
    console.log('Answer Rendered');
    return this;
  },

  save: function(){
    return this.model.save([], {
      success: function(){ alert('Answer Submitted!'); }, 
      error: function(){ alert('Error while saving Answer'); }
    });
  }
});
Fix a bug in submitting an answer
Fix a bug in submitting an answer
