text: import Ember from 'ember';
  
  export default Ember.Route.extend({
    model(params) {
       return this.store.findRecord('question', params.question_id);
    },
    actions: {
      destroyQuestion(question) {
        question.destroyRecord();
        this.transitionTo('index');
      },
      saveNewAnswer3(params) {
        var newAnswer = this.store.createRecord('answer', params);
        var question = params.question;
        question.get('answers').addObject(newAnswer);
        newAnswer.save().then(function() {
          return question.save();
        });
        this.transitionTo('question');
      }
    }
  });
  